-
-
Save gfelot/e4f5d407068a56c735e98ca797ef157d to your computer and use it in GitHub Desktop.
NGINX Conf w/ Cerbot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream email.pamelajoa.com { | |
server 127.0.0.1:3030; | |
keepalive 8; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name email.pamelajoa.com; | |
location / { | |
proxy_pass http://localhost:3030; | |
} | |
listen 443 ssl; # managed by Certbot | |
ssl_certificate /etc/letsencrypt/live/email.pamelajoa.com/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/email.pamelajoa.com/privkey.pem; # managed by Certbot | |
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | |
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | |
if ($scheme != "https") { | |
return 301 https://$host$request_uri; | |
} # managed by Certbot | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment