mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 09:17:30 -05:00
First Commit
This commit is contained in:
1
nginx-proxy/test/certs/note.md
Normal file
1
nginx-proxy/test/certs/note.md
Normal file
@@ -0,0 +1 @@
|
||||
# Copy your certs here
|
||||
78
nginx-proxy/test/vhosts/site.template
Normal file
78
nginx-proxy/test/vhosts/site.template
Normal file
@@ -0,0 +1,78 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name ${DOMAIN_NAME} www.${DOMAIN_NAME};
|
||||
|
||||
location / {
|
||||
proxy_pass http://frontend:3000;
|
||||
include /etc/nginx/proxy.conf;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name account.${DOMAIN_NAME};
|
||||
|
||||
location / {
|
||||
proxy_pass http://account:3009;
|
||||
include /etc/nginx/proxy.conf;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name admin.${DOMAIN_NAME};
|
||||
|
||||
location / {
|
||||
proxy_pass http://admin:3008;
|
||||
include /etc/nginx/proxy.conf;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name socket.${DOMAIN_NAME};
|
||||
|
||||
location / {
|
||||
proxy_pass http://backend:4005;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name api.${DOMAIN_NAME};
|
||||
|
||||
location / {
|
||||
proxy_pass http://backend:3005;
|
||||
include /etc/nginx/proxy.conf;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name media.${DOMAIN_NAME};
|
||||
|
||||
location / {
|
||||
proxy_pass http://backend:3005/audio$request_uri;
|
||||
proxy_set_header Host $host;
|
||||
include /etc/nginx/proxy.conf;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user