fix: deploy

This commit is contained in:
Kilu 2024-06-29 00:47:53 +08:00
parent 9ab1ed8ccb
commit 967a647342
2 changed files with 11 additions and 2 deletions

View File

@ -71,4 +71,4 @@ jobs:
cd appflowy-web-app
docker build -t appflowy-web-app .
docker rm -f appflowy-web-app || true
docker run -d -p 3000:3000 --env-file .env --name appflowy-web-app appflowy-web-app
docker run -d -p 3000:80 --env-file .env --name appflowy-web-app appflowy-web-app

View File

@ -1,7 +1,16 @@
server {
listen 3000;
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:3000;
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;
}
location /static/ {
root /usr/share/nginx/html;
try_files $uri =404;