blob: 1aa1ee20fe6f4a00a6bf71e87b4c8bd3ada00efd [file] [log] [blame]
ecaiyanlinux73986252021-12-09 07:37:14 +01001user www-data;
ecaiyanlinux67355802020-05-11 12:53:23 +02002worker_processes auto;
3pid /run/nginx.pid;
4include /etc/nginx/modules-enabled/*.conf;
5
6events {
7 worker_connections 768;
ecaiyanlinux67355802020-05-11 12:53:23 +02008}
9
10http {
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;
ecaiyanlinux67355802020-05-11 12:53:23 +020021
22 include /etc/nginx/mime.types;
23 default_type application/octet-stream;
24
25 server { # simple reverse-proxy
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010026 listen 3904;
27 listen [::]:3904;
28 listen 3905 ssl;
29 listen [::]:3905 ssl;
ecaiyanlinux67355802020-05-11 12:53:23 +020030 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 / {
BjornMagnussonXA6fc58fd2021-11-18 08:19:45 +010037 proxy_pass http://localhost:2222;
38 client_max_body_size 0;
ecaiyanlinux67355802020-05-11 12:53:23 +020039 }
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;
ecaiyanlinux67355802020-05-11 12:53:23 +020054}