2022-02-08 13:07:18 +00:00
|
|
|
|
|
|
|
server {
|
|
|
|
listen *:80;
|
|
|
|
server_name _;
|
|
|
|
|
2022-02-11 00:46:55 +00:00
|
|
|
# Data (media and assets)
|
|
|
|
location ~ ^/(media|assets)/ {
|
|
|
|
root ${DATA_DIR};
|
|
|
|
try_files $uri 404;
|
2022-02-11 00:24:25 +00:00
|
|
|
}
|
|
|
|
|
2022-02-08 13:07:18 +00:00
|
|
|
# Web client
|
2022-02-09 20:05:27 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|