From c4ca1bb656d4500a812cd86459bcd55829f39c40 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 26 Aug 2022 18:22:22 +0200 Subject: [PATCH] add the nginx file we use to the repo in case some1 finds it useful --- nginx.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nginx.txt diff --git a/nginx.txt b/nginx.txt new file mode 100644 index 000000000..8f9c53eb2 --- /dev/null +++ b/nginx.txt @@ -0,0 +1,24 @@ +server { + server_name rdrama.net; + client_max_body_size 100m; + listen 443 ssl; + listen [::]:443 ssl; + ssl_certificate '/rdrama.pem'; + ssl_certificate_key '/rdrama.key'; + proxy_set_header Host $host; + + location / { + proxy_pass http://localhost:5000/; + } + location /socket.io { + include proxy_params; + proxy_http_version 1.1; + proxy_buffering off; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_pass http://127.0.0.1:5001/socket.io; + } + location /chat { + proxy_pass http://127.0.0.1:5001/chat; + } +} \ No newline at end of file