With this repository, you can setup Publish Goods and 1-x rendering servers with ease (and docker-compose).
- Clone/Download this repository and open the publish-goods-with-nginx-reverse-proxy folder.
Publish Goods requires a reverse proxy running in front of the main container. The publish-goods folder doesn't include a reverse proxy, the publish-goods-with-nginx-reverse-proxy does.
Important: If you bring your own reverse proxy, make sure to allow websocket traffic!
Example nginx config:
server {
listen 80;
server_name editor.verfassungsblog.de;
# Weiterleitung von HTTP zu HTTPS
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name editor.verfassungsblog.de;
# Set your ssl certificate + key here!
ssl_certificate /cert/fullchain.pem;
ssl_certificate_key /cert/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384";
location / {
# Adjust container name if you changed the docker-compose.yml
proxy_pass http://publish-goods-main:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Also make sure to bring your reverse proxy + the publish goods main container in a shared network.