nginx-certbox/data/nginx/sites/thelinux_pro.conf

32 lines
874 B
Plaintext

server {
listen 80;
server_name thelinux.pro www.thelinux.pro;
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name thelinux.pro www.thelinux.pro;
server_tokens off;
ssl_certificate /etc/letsencrypt/live/thelinux.pro/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/thelinux.pro/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass http://10.99.22.51:4001;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}