Git Product home page Git Product logo

jprq-server-deploy's Introduction

jprq server deploy

GitHub

This repository contains example deployment files for self-hosting jprq.

Tools used

SSL certificates setup

# CERTIFICATES contains everything to do with obtaining a dns wildcard certificate
cd CERTIFICATES
ls -gGoh --time-style=+""
#  -rwxrwxr-x 1  370  jprq-certs.sh
#  -rwxrwxr-x 1  166  link-nginx-conf.sh
#  -rw-rw-r-- 1   28  requirements.txt
#  -rw------- 1 1.7K  transip-rsa.key
#  -rw------- 1   79  transip.ini
#  drwxrwxr-x 4 4.0K  venv

I'll go through each of the files:

venv, requirements.txt: virtualenv containing the required dependencies
python3 -m pip install virtualenv
python3 -m virtualenv venv
. venv/bin/activate
pip install -r requirements.txt 
transip.ini and transip-rsa.key

This ini file contains the username that owns the domain you want to request a certificate for. The key contains a private key with access to that account (See API Settings)[https://www.transip.nl/cp/account/api/].

jprq-certs.sh

This script requests a wildcard certificate for the domain specified in the script

link-nginx-conf.sh

Links a letsencrypt config file that nginx uses to /etc/letsencrypt/

nginx/service setup

See the 'nginx' folder for the config files in my sites-enabled. To use them, simply change the domain name 'your.domain.tld' to your actual domain name.

See the 'service' folder for two simple systemctl (/etc/systemd/system/) config files to run the two jprq servers as services. These files also need to be updated with the actual domain name.

(Oracle) network setup

In order for the tcp client to work, all unpriviliged ports (1024 and higher) need to be opened in the firewall.

More info? Docker??

See also

jprq-server-deploy's People

Contributors

robinvandernoord avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.