30 lines
683 B
Plaintext
30 lines
683 B
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name wiki.libraryofcode.org;
|
|
|
|
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
|
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
|
|
|
client_max_body_size 1G;
|
|
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://localhost:3000;
|
|
|
|
proxy_read_timeout 90;
|
|
|
|
proxy_redirect http://localhost:3000 https://wiki.libraryofcode.org;
|
|
|
|
}
|
|
}
|