default.conf (1749B)
1 server { 2 listen 80; 3 #server_name your.domain; 4 5 #charset koi8-r; 6 #access_log /var/log/nginx/host.access.log main; 7 8 expires epoch; 9 10 location / { 11 root /usr/share/nginx/html; 12 index index.html index.htm; 13 } 14 15 location /server { 16 proxy_connect_timeout 300; 17 proxy_pass http://node:3000; 18 proxy_set_header Connection "upgrade"; 19 proxy_set_header Upgrade $http_upgrade; 20 proxy_set_header X-Forwarded-for $remote_addr; 21 } 22 23 location /ca.crt { 24 alias /etc/ssl/certs/snapdropCA.crt; 25 } 26 27 #error_page 404 /404.html; 28 29 # redirect server error pages to the static page /50x.html 30 # 31 error_page 500 502 503 504 /50x.html; 32 location = /50x.html { 33 root /usr/share/nginx/html; 34 } 35 } 36 37 server { 38 listen 443 ssl http2; 39 ssl_certificate /etc/ssl/certs/snapdrop-dev.crt; 40 ssl_certificate_key /etc/ssl/certs/snapdrop-dev.key; 41 42 #server_name ; 43 44 #charset koi8-r; 45 #access_log /var/log/nginx/host.access.log main; 46 47 expires epoch; 48 49 location / { 50 root /usr/share/nginx/html; 51 index index.html index.htm; 52 } 53 54 location /server { 55 proxy_connect_timeout 300; 56 proxy_pass http://node:3000; 57 proxy_set_header Connection "upgrade"; 58 proxy_set_header Upgrade $http_upgrade; 59 proxy_set_header X-Forwarded-for $remote_addr; 60 } 61 62 location /ca.crt { 63 alias /etc/ssl/certs/snapdropCA.crt; 64 } 65 66 #error_page 404 /404.html; 67 68 # redirect server error pages to the static page /50x.html 69 # 70 error_page 500 502 503 504 /50x.html; 71 location = /50x.html { 72 root /usr/share/nginx/html; 73 } 74 } 75