configurations/Nginx/Server Blocks/eds.libraryofcode.org.conf

32 lines
673 B
Plaintext

upstream eds-backend {
server localhost:7101;
server node2.libraryofcode.org:7101 backup;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name eds.libraryofcode.org;
ssl_certificate /etc/nginx/ssl/org.chain.crt;
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://eds-backend;
proxy_read_timeout 90;
}
}