citadel-core/templates/nginx-sample.conf

54 lines
961 B
Plaintext
Raw Normal View History

# SPDX-FileCopyrightText: 2020 Umbrel. https://getumbrel.com
2022-01-28 06:52:26 +00:00
# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors
#
2022-01-21 20:37:48 +00:00
# SPDX-License-Identifier: GPL-3.0-or-later
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/;
}
location /manager-api/ {
proxy_pass http://<manager-ip>:3006/;
}
# dashboard (old)
location / {
proxy_pass http://<dashboard-ip>:3004/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
server {
listen 8000;
# dashboard (new)
location / {
proxy_pass http://<dashboard-new-ip>:3010/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
}