fix: optional services
This commit is contained in:
parent
141f682a58
commit
994e99e7d0
|
|
@ -7,7 +7,7 @@ events {
|
||||||
|
|
||||||
http {
|
http {
|
||||||
# docker dns resolver
|
# docker dns resolver
|
||||||
resolver 127.0.0.11 valid=30s;
|
resolver 127.0.0.11 valid=10s;
|
||||||
|
|
||||||
map $http_upgrade $connection_upgrade {
|
map $http_upgrade $connection_upgrade {
|
||||||
default upgrade;
|
default upgrade;
|
||||||
|
|
@ -36,8 +36,8 @@ http {
|
||||||
|
|
||||||
# GoTrue
|
# GoTrue
|
||||||
location /gotrue/ {
|
location /gotrue/ {
|
||||||
set $backend "http://gotrue:9999";
|
set $gotrue gotrue;
|
||||||
proxy_pass $backend;
|
proxy_pass http://$gotrue:9999;
|
||||||
|
|
||||||
rewrite ^/gotrue(/.*)$ $1 break;
|
rewrite ^/gotrue(/.*)$ $1 break;
|
||||||
|
|
||||||
|
|
@ -49,8 +49,8 @@ http {
|
||||||
|
|
||||||
# WebSocket
|
# WebSocket
|
||||||
location /ws {
|
location /ws {
|
||||||
set $backend "http://appflowy_cloud:8000";
|
set $appflowy_cloud appflowy_cloud;
|
||||||
proxy_pass $backend;
|
proxy_pass http://$appflowy_cloud:8000;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|
@ -61,8 +61,8 @@ http {
|
||||||
|
|
||||||
# AppFlowy-Cloud
|
# AppFlowy-Cloud
|
||||||
location /api {
|
location /api {
|
||||||
set $backend "http://appflowy_cloud:8000";
|
set $appflowy_cloud appflowy_cloud;
|
||||||
proxy_pass $backend;
|
proxy_pass http://$appflowy_cloud:8000;
|
||||||
|
|
||||||
proxy_set_header X-Request-Id $request_id;
|
proxy_set_header X-Request-Id $request_id;
|
||||||
}
|
}
|
||||||
|
|
@ -71,6 +71,9 @@ http {
|
||||||
# Derive from: https://min.io/docs/minio/linux/integrations/setup-nginx-proxy-with-minio.html
|
# Derive from: https://min.io/docs/minio/linux/integrations/setup-nginx-proxy-with-minio.html
|
||||||
# Optional Module, comment this section if you are did not deploy minio in docker-compose.yml
|
# Optional Module, comment this section if you are did not deploy minio in docker-compose.yml
|
||||||
location /minio/ {
|
location /minio/ {
|
||||||
|
set $minio minio;
|
||||||
|
proxy_pass http://$minio:9001;
|
||||||
|
|
||||||
rewrite ^/minio/(.*) /$1 break;
|
rewrite ^/minio/(.*) /$1 break;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
@ -92,16 +95,13 @@ http {
|
||||||
# proxy_set_header Origin '';
|
# proxy_set_header Origin '';
|
||||||
|
|
||||||
chunked_transfer_encoding off;
|
chunked_transfer_encoding off;
|
||||||
|
|
||||||
set $backend "http://minio:9001";
|
|
||||||
proxy_pass $backend;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# PgAdmin
|
# PgAdmin
|
||||||
# Optional Module, comment this section if you are did not deploy pgadmin in docker-compose.yml
|
# Optional Module, comment this section if you are did not deploy pgadmin in docker-compose.yml
|
||||||
location /pgadmin/ {
|
location /pgadmin/ {
|
||||||
set $backend "http://pgadmin:80/";
|
set $pgadmin pgadmin;
|
||||||
proxy_pass $backend;
|
proxy_pass http://$pgadmin:80;
|
||||||
|
|
||||||
proxy_set_header X-Script-Name /pgadmin;
|
proxy_set_header X-Script-Name /pgadmin;
|
||||||
proxy_set_header X-Scheme $scheme;
|
proxy_set_header X-Scheme $scheme;
|
||||||
|
|
@ -112,18 +112,20 @@ http {
|
||||||
# Portainer
|
# Portainer
|
||||||
# Optional Module, comment this section if you are did not deploy portainer in docker-compose.yml
|
# Optional Module, comment this section if you are did not deploy portainer in docker-compose.yml
|
||||||
location /portainer/ {
|
location /portainer/ {
|
||||||
set $backend "http://portainer:9000/";
|
set $portainer portainer;
|
||||||
proxy_pass $backend;
|
proxy_pass http://$portainer:9000;
|
||||||
|
|
||||||
|
rewrite ^/portainer/(.*) /$1 break;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Admin Frontend
|
# Admin Frontend
|
||||||
# Optional Module, comment this section if you are did not deploy admin_frontend in docker-compose.yml
|
# Optional Module, comment this section if you are did not deploy admin_frontend in docker-compose.yml
|
||||||
location / {
|
location / {
|
||||||
|
set $admin_frontend admin_frontend;
|
||||||
|
proxy_pass http://$admin_frontend:3000;
|
||||||
|
|
||||||
proxy_set_header X-Scheme $scheme;
|
proxy_set_header X-Scheme $scheme;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
set $backend "http://admin_frontend:3000";
|
|
||||||
proxy_pass $backend;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue