All checks were successful
dev - build & deploy naar test / build-and-deploy (push) Successful in 27s
23 lines
699 B
Nginx Configuration File
23 lines
699 B
Nginx Configuration File
# Behoud het publieke schema van Pangolin/Traefik; val lokaal terug op nginx.
|
|
map $http_x_forwarded_proto $teach_forwarded_proto {
|
|
default $http_x_forwarded_proto;
|
|
"" $scheme;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
server_tokens off;
|
|
|
|
# Wat groter zodat grote borden/afbeeldingen niet geweigerd worden
|
|
client_max_body_size 55m;
|
|
|
|
location / {
|
|
proxy_pass http://app:3000;
|
|
proxy_http_version 1.1;
|
|
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 $teach_forwarded_proto;
|
|
}
|
|
}
|