openvibers/openvibe.finance deploynginxopenvibe.finance.conf
openvibe.finance.conf
| 1 | server { |
| 2 | listen 80; |
| 3 | listen [::]:80; |
| 4 | server_name openvibe.finance www.openvibe.finance; |
| 5 | location /.well-known/acme-challenge/ { root /var/www/certbot; } |
| 6 | location / { return 301 https://openvibe.finance$request_uri; } |
| 7 | } |
| 8 | server { |
| 9 | listen 443 ssl; |
| 10 | listen [::]:443 ssl; |
| 11 | http2 on; |
| 12 | server_name www.openvibe.finance; |
| 13 | ssl_certificate /etc/letsencrypt/live/openvibe.finance/fullchain.pem; |
| 14 | ssl_certificate_key /etc/letsencrypt/live/openvibe.finance/privkey.pem; |
| 15 | ssl_protocols TLSv1.2 TLSv1.3; |
| 16 | return 301 https://openvibe.finance$request_uri; |
| 17 | } |
| 18 | server { |
| 19 | listen 443 ssl; |
| 20 | listen [::]:443 ssl; |
| 21 | http2 on; |
| 22 | server_name openvibe.finance; |
| 23 | ssl_certificate /etc/letsencrypt/live/openvibe.finance/fullchain.pem; |
| 24 | ssl_certificate_key /etc/letsencrypt/live/openvibe.finance/privkey.pem; |
| 25 | ssl_protocols TLSv1.2 TLSv1.3; |
| 26 | # A bank's CSV export, pasted or chosen: up to 4 MB (the app's own limit). |
| 27 | client_max_body_size 5m; |
| 28 | proxy_http_version 1.1; |
| 29 | proxy_set_header Host $host; |
| 30 | proxy_set_header X-Real-IP $remote_addr; |
| 31 | proxy_set_header X-Forwarded-For $remote_addr; |
| 32 | proxy_set_header CF-Connecting-IP $remote_addr; |
| 33 | proxy_set_header X-Forwarded-Proto $scheme; |
| 34 | add_header Strict-Transport-Security "max-age=31536000" always; |
| 35 | location ~* ^/internal(/|$) { return 404; } |
| 36 | location ~* ^/metrics(/|$) { return 404; } |
| 37 | location / { proxy_pass http://127.0.0.1:5292; } |
| 38 | location ~ /\.(?!well-known) { deny all; } |
| 39 | } |
| 40 |