plane/nginx/nginx.conf

22 lines
405 B
Nginx Configuration File
Raw Normal View History

2023-03-08 10:26:15 +00:00
events { }
2023-03-08 10:16:22 +00:00
2023-03-06 21:04:13 +00:00
http {
sendfile on;
2023-03-08 11:23:41 +00:00
server {
listen 80;
root /www/data/;
access_log /var/log/nginx/access.log;
location / {
proxy_pass http://planefrontend:3000/;
2023-03-08 11:56:52 +00:00
add_header 'Access-Control-Allow-Origin' '*' always;
}
2023-03-08 10:59:41 +00:00
location /api/ {
proxy_pass http://planebackend:8000/api/;
2023-03-08 11:56:52 +00:00
add_header 'Access-Control-Allow-Origin' '*' always;
}
2023-03-08 11:23:41 +00:00
}
2023-03-06 21:04:13 +00:00
}