mirror of
https://github.com/offen/website.git
synced 2024-10-18 20:20:24 +02:00
23 lines
267 B
Nginx Configuration File
23 lines
267 B
Nginx Configuration File
|
events {}
|
||
|
|
||
|
http {
|
||
|
include /etc/nginx/mime.types;
|
||
|
|
||
|
upstream server {
|
||
|
server server:3000;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
autoindex on;
|
||
|
root /www/data;
|
||
|
|
||
|
location /api/ {
|
||
|
proxy_pass http://server;
|
||
|
proxy_redirect off;
|
||
|
rewrite ^/api(.*)$ $1 break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|