Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save voicon/308acee035529c7af241d4bcab7023cb to your computer and use it in GitHub Desktop.
Save voicon/308acee035529c7af241d4bcab7023cb 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