From c71b37eb23d4c8af7ab983de34c6da5be9363f3a Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Tue, 3 Jan 2023 23:49:41 -0500 Subject: Tweak index handler to always load the frontend. Also add Nginx testing script, logging options and some docs. --- nginx.conf | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 nginx.conf (limited to 'nginx.conf') diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..07995ad --- /dev/null +++ b/nginx.conf @@ -0,0 +1,46 @@ +user nginx; +worker_processes auto; + +error_log /var/log/nginx/error.log notice; +pid /var/run/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + # include /etc/nginx/conf.d/*.conf; + + + server { + listen [::1]:8443 ssl http2; + listen 127.0.0.1:8443 ssl http2; + + ssl_certificate /crt.pem; + ssl_certificate_key /key.pem; + + location / { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_pass http://localhost:6130/; + } + } +} -- cgit v1.2.3