Add Gitea CI and automatic dev deployment
This commit is contained in:
1 parent
543564a29c
commit
b4f29d4966
20 files changed
+1109
-29
No files matched your search
+4
-2
@@ -1,11 +1,13 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
resolver 127.0.0.11 valid=5s ipv6=off;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://api:8000;
|
||||
set $api_upstream api:8000;
|
||||
proxy_pass http://$api_upstream;
|
||||
proxy_http_version 1.1;
|
||||
# SSE 不能被缓冲;WebSocket 需要升级头
|
||||
# Preserve SSE delivery and WebSocket upgrades.
|
||||
proxy_buffering off;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
Reference in new issue
Block a user