T
Tomorrow Ltd
@tmrw
Posts
-
NodeBB disabled after server reboots -
How i force https?Like this:
server { listen [::]:80; listen 80; server_name javahub.de www.javahub.de; return 301 https://javahub.de$request_uri; } server { listen [::]:443 ssl http2; listen 443 ssl http2; server_name javahub.de; client_max_body_size 50M; # RSA ssl_certificate /etc/letsencrypt/javahub.de/fullchain.pem; ssl_certificate_key /etc/letsencrypt/javahub.de/private.key; # ECDSA ssl_certificate /etc/letsencrypt/javahub.de_ecc/fullchain.pem; ssl_certificate_key /etc/letsencrypt/javahub.de_ecc/private.key; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }