Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
- ssl_certificate /etc/letsencrypt/live/gubcsigergely.info/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/gubcsigergely.info/privkey.pem;
- ssl_session_timeout 1d;
- ssl_session_cache shared:SSL:50m;
- ssl_session_tickets off;
- # modern configuration. tweak to your needs.
- ssl_protocols TLSv1.2;
- ssl_ciphers
- 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
- ssl_prefer_server_ciphers on;
- # OCSP Stapling --- fetch OCSP records from URL in ssl_certificate and cache them
- ssl_stapling on;
- ssl_stapling_verify on;
- resolver 8.8.8.8;
- server_name gubcsigergely.info;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://127.0.0.1:3000/;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_redirect off;
- proxy_set_header X-Forwarded-Proto $scheme;
- }
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
- ssl_certificate /etc/letsencrypt/live/krisztigulyas.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/krisztigulyas.com/privkey.pem;
- ssl_session_timeout 1d;
- ssl_session_cache shared:SSL:50m;
- ssl_session_tickets off;
- # modern configuration. tweak to your needs.
- ssl_protocols TLSv1.2;
- ssl_ciphers
- 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
- ssl_prefer_server_ciphers on;
- # OCSP Stapling --- fetch OCSP records from URL in ssl_certificate and cache them
- ssl_stapling on;
- ssl_stapling_verify on;
- resolver 8.8.8.8;
- server_name krisztigulyas.com;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://127.0.0.1:8000/;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_redirect off;
- proxy_set_header X-Forwarded-Proto $scheme;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement