diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-03 23:49:41 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-03 23:49:41 -0500 |
| commit | c71b37eb23d4c8af7ab983de34c6da5be9363f3a (patch) | |
| tree | fa699de5d31008b17529d799df00a9a3290c52bf /nginx.conf | |
| parent | 61612c8e1861ac704bbe592a623a41f12ebc9c11 (diff) | |
| download | paste-c71b37eb23d4c8af7ab983de34c6da5be9363f3a.tar.gz paste-c71b37eb23d4c8af7ab983de34c6da5be9363f3a.tar.xz | |
Also add Nginx testing script, logging options and
some docs.
Diffstat (limited to 'nginx.conf')
| -rw-r--r-- | nginx.conf | 46 |
1 files changed, 46 insertions, 0 deletions
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/; + } + } +} |
