Files
trunk-server/nginx-proxy/test/vhosts/site.template
2024-02-22 22:12:49 -05:00

86 lines
1.4 KiB
Plaintext

server {
listen 80;
server_name ${DOMAIN_NAME} www.${DOMAIN_NAME};
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location /static {
proxy_pass http://frontend:3000;
access_log off;
}
location /favicon.ico {
proxy_pass http://frontend:3000;
access_log off;
}
location /*.png {
proxy_pass http://frontend:3000;
access_log off;
}
location / {
proxy_pass http://frontend:3000;
include /etc/nginx/proxy.conf;
access_log /dev/stdout main;
}
}
server {
listen 80;
server_name account.${DOMAIN_NAME};
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
proxy_pass http://account:3009;
include /etc/nginx/proxy.conf;
access_log off;
}
}
server {
listen 80;
server_name admin.${DOMAIN_NAME};
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
proxy_pass http://admin:3008;
include /etc/nginx/proxy.conf;
access_log off;
}
}
server {
listen 80;
server_name api.${DOMAIN_NAME};
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
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;
access_log off;
}
}