fedilove/nginx.conf

28 lines
446 B
Nginx Configuration File
Raw Normal View History

2022-02-08 13:07:18 +00:00
server {
listen *:80;
server_name _;
# Media
location /media {
root ${MEDIA_DIR};
}
2022-02-08 13:07:18 +00:00
# Web client
location ~ ^(/$|/@|/app) {
2022-02-08 13:07:18 +00:00
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://web:8080;
}
# ActivityPub + Node API
location ~ ^/.+$ {
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://api:8080;
}
}