fedilove/nginx.conf

23 lines
393 B
Nginx Configuration File

server {
listen *:80;
server_name _;
# Web client
location ~ ^(/$|/@|/web) {
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;
}
}