diff --git a/config/pages-nginx-config b/config/pages-nginx-config new file mode 100644 index 0000000..0000153 --- /dev/null +++ b/config/pages-nginx-config @@ -0,0 +1,21 @@ +server { + server_name HOSTNAME; + error_log /var/log/nginx/error.log; + + listen 443 ssl http2; + + location / { + proxy_pass http://127.0.0.1:12081; + proxy_set_header Host $host; + } +} + +server { + listen 80; + listen [::]:80; + server_name HOSTNAME; # change hostname + + location / { + return 301 https://$host$request_uri; + } +}