Setup Webserver
Self-Hosted
The Django webserver is not recommended due to missing transport encryption, missing performance and security tests.
We recommend a webserver like Caddy, nginx or Apache and to enable https.
Easy setup with Caddy (recommended)
You can run setup.sh
in deploy/caddy
to set up an additional Docker container with Caddy as a webserver.
1 |
|
Optional: LetsEncrypt HTTPS certificate
If you want Caddy to take care of your LetsEncrypt certificate, you must set up:
- a valid domain name resolving to your public IP address
- port 80 of your must be publicly reachable
nginx
Install nginx on your host system:
1 2 |
|
Copy our nginx boilerplate configuration from the deploy/nginx
directory to your nginx directory:
1 2 3 |
|
You can optionally generate self-signed certificates:
1 2 3 |
|
Modify sysreptor.nginx
and update the certificate paths in case you have trusted certificates (recommended).
(Re)Start nginx:
1 2 |
|