2021-10-22 15:22:10 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Umbrel. https://getumbrel.com
|
2022-01-28 06:52:26 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors
|
2021-10-22 15:22:10 +00:00
|
|
|
#
|
2022-01-21 20:37:48 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2021-10-22 15:22:10 +00:00
|
|
|
|
|
|
|
user nginx;
|
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
error_log /dev/stdout info;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
access_log /dev/stdout;
|
|
|
|
|
|
|
|
proxy_read_timeout 600;
|
|
|
|
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
location /api/ {
|
|
|
|
proxy_pass http://<middleware-ip>:3005/;
|
|
|
|
}
|
|
|
|
|
2022-11-07 18:43:51 +00:00
|
|
|
location /api-v2/ {
|
2022-10-26 08:28:31 +00:00
|
|
|
proxy_pass http://<manager-ip>:3000/;
|
2021-10-22 15:22:10 +00:00
|
|
|
}
|
|
|
|
|
2022-10-28 18:37:14 +00:00
|
|
|
location /i2p/ {
|
|
|
|
proxy_pass http://<i2p-ip>:7070/;
|
2021-10-22 15:22:10 +00:00
|
|
|
}
|
2022-03-20 08:02:30 +00:00
|
|
|
|
|
|
|
location / {
|
2022-10-28 18:37:14 +00:00
|
|
|
proxy_pass http://<dashboard-ip>:3004/;
|
2022-03-20 08:02:30 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
|
|
|
}
|
2021-10-22 15:22:10 +00:00
|
|
|
}
|