chore: ws nginx config (#100)

This commit is contained in:
Nathan.fooo 2023-10-05 22:32:19 +08:00 committed by GitHub
parent 3de367c8fe
commit 9918a6fe43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -35,4 +35,4 @@ jobs:
echo "${{ secrets.APPFLOWY_CLOUD_KEY }}" | base64 --decode > ./nginx/ssl/private_key.key
- name: Deploy docker-compose
run: sudo docker compose up -d --build --force-recreate
run: sudo docker-compose up -d --build --force-recreate

View File

@ -6,6 +6,11 @@ events {
}
http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
ssl_certificate /etc/nginx/ssl/certificate.crt;
ssl_certificate_key /etc/nginx/ssl/private_key.key;
@ -20,7 +25,7 @@ http {
# WebSocket
location /ws {
proxy_pass http://appflowy_cloud;
proxy_pass http://appflowy_cloud:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";