wedding-planner/nginx.conf
Manuel Bustillo 71046b9a1c
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 40s
Add copyright notice / copyright_notice (pull_request) Successful in 1m8s
Run unit tests / unit_tests (pull_request) Successful in 1m40s
Avoid exposing internal port and unnecessary endpoints
2024-12-01 20:01:00 +01:00

26 lines
572 B
Nginx Configuration File

server {
listen 80;
server_name libre-wedding-planner.app.localhost;
location /api/ {
proxy_pass http://backend:3000/;
proxy_set_header Host $http_host;
}
location /letter_opener/ {
proxy_pass http://backend:3000/letter_opener/;
proxy_set_header Host $http_host;
}
location /captcha/v2/media/ {
proxy_pass http://libre-captcha:8888/v2/media/;
proxy_set_header Host $http_host;
}
location / {
proxy_pass http://frontend:3000;
proxy_set_header Host $http_host;
}
}