2021-05-01 15:13:49 -04:00
|
|
|
upstream eds-backend {
|
|
|
|
server localhost:7101;
|
2021-05-01 15:23:15 -04:00
|
|
|
server node2.libraryofcode.org:7101 backup;
|
2021-05-01 15:13:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
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_pass http://eds-backend;
|
|
|
|
}
|
|
|
|
}
|