add upload server

This commit is contained in:
Luke Berndt
2024-09-08 09:57:44 -04:00
parent 1be715c042
commit 2cbc6929e8
10 changed files with 97 additions and 23 deletions

View File

@@ -83,3 +83,24 @@ server {
access_log off;
}
}
server {
listen 80;
server_name upload.${DOMAIN_NAME};
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location /~*/upload {
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;
}
}