ecaiyanlinux | 7398625 | 2021-12-09 07:37:14 +0100 | [diff] [blame] | 1 | user www-data; |
ecaiyanlinux | 6735580 | 2020-05-11 12:53:23 +0200 | [diff] [blame] | 2 | worker_processes auto; |
| 3 | pid /run/nginx.pid; |
| 4 | include /etc/nginx/modules-enabled/*.conf; |
| 5 | |
| 6 | events { |
| 7 | worker_connections 768; |
ecaiyanlinux | 6735580 | 2020-05-11 12:53:23 +0200 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | http { |
| 11 | |
| 12 | ## |
| 13 | # Basic Settings |
| 14 | ## |
| 15 | |
| 16 | sendfile on; |
| 17 | tcp_nopush on; |
| 18 | tcp_nodelay on; |
| 19 | keepalive_timeout 65; |
| 20 | types_hash_max_size 2048; |
ecaiyanlinux | 6735580 | 2020-05-11 12:53:23 +0200 | [diff] [blame] | 21 | |
| 22 | include /etc/nginx/mime.types; |
| 23 | default_type application/octet-stream; |
| 24 | |
| 25 | server { # simple reverse-proxy |
BjornMagnussonXA | e0b665e | 2021-01-08 22:19:18 +0100 | [diff] [blame] | 26 | listen 3904; |
| 27 | listen [::]:3904; |
| 28 | listen 3905 ssl; |
| 29 | listen [::]:3905 ssl; |
ecaiyanlinux | 6735580 | 2020-05-11 12:53:23 +0200 | [diff] [blame] | 30 | server_name localhost; |
| 31 | ssl_certificate /usr/src/app/cert/cert.crt; |
| 32 | ssl_certificate_key /usr/src/app/cert/key.crt; |
| 33 | ssl_password_file /usr/src/app/cert/pass; |
| 34 | |
| 35 | # serve dynamic requests |
| 36 | location / { |
BjornMagnussonXA | 6fc58fd | 2021-11-18 08:19:45 +0100 | [diff] [blame] | 37 | proxy_pass http://localhost:2222; |
| 38 | client_max_body_size 0; |
ecaiyanlinux | 6735580 | 2020-05-11 12:53:23 +0200 | [diff] [blame] | 39 | } |
| 40 | } |
| 41 | ## |
| 42 | # SSL Settings |
| 43 | ## |
| 44 | |
| 45 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE |
| 46 | ssl_prefer_server_ciphers on; |
| 47 | |
| 48 | ## |
| 49 | # Logging Settings |
| 50 | ## |
| 51 | |
| 52 | access_log /var/log/nginx/access.log; |
| 53 | error_log /var/log/nginx/error.log; |
ecaiyanlinux | 6735580 | 2020-05-11 12:53:23 +0200 | [diff] [blame] | 54 | } |