Skip to content

Instantly share code, notes, and snippets.

@zthxxx
Last active February 8, 2021 08:54
Show Gist options
  • Save zthxxx/7b71e49d5ab0f36ae3e3832b33a348de to your computer and use it in GitHub Desktop.
Save zthxxx/7b71e49d5ab0f36ae3e3832b33a348de to your computer and use it in GitHub Desktop.
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name <xxxx.xxx>;
# acem: https://gist.github.com/zthxxx/b37cddcb17395e395ad6b430a81edd61
# cloudflare: https://dash.cloudflare.com/<account_id>/<domain_name>/ssl-tls/origin
ssl_certificate /etc/nginx/ssl/<xxxx.xxx>/fullchain.cer;
ssl_certificate_key /etc/nginx/ssl/<xxxx.xxx>/privkey.key;
location / {
proxy_pass http://localhost:<xxx>;
include proxy_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment