Enable SSL Note

Command


Nginx Config

server {
    listen 80;
    listen 443;
    ssl on;
    ssl_certificate /etc/ssl/cert_chain.crt;
    ssl_certificate_key /etc/ssl/goldenshark.key;
    server_name www.goldenshark.xyz goldenshark.xyz;

    error_page 497 https://$server_name$request_uri;
    location / {
        proxy_pass http://127.0.0.1:4000;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Thanks!