This commit is contained in:
vet
2026-04-21 10:38:07 +07:00
parent cdbcad650e
commit 67ab5f5ba5
3 changed files with 208 additions and 7 deletions

View File

@@ -126,3 +126,95 @@ server {
proxy_send_timeout 86400s;
}
}
server {
listen 80;
listen [::]:80;
server_name cms-jack.imharry.work;
root /app/cms/dist;
index index.html;
access_log /var/log/nginx/openim-cms-access.log openim_pc_gateway;
error_log /var/log/nginx/openim-cms-error.log warn;
client_max_body_size 100m;
location /api/im/ {
proxy_pass http://127.0.0.1:10002/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
location /api/user/ {
proxy_pass http://127.0.0.1:10008/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
location /api/admin/ {
proxy_pass http://127.0.0.1:10009/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
location = /nginx-health {
access_log off;
default_type text/plain;
return 200 "ok\n";
}
location / {
try_files $uri $uri/ /index.html;
}
}
server {
listen 80;
listen [::]:80;
server_name build-jack.imharry.work;
root /app/build-cms/dist;
index index.html;
access_log /var/log/nginx/openim-build-cms-access.log openim_pc_gateway;
error_log /var/log/nginx/openim-build-cms-error.log warn;
client_max_body_size 100m;
location /api/ {
proxy_pass http://127.0.0.1:8281;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
location = /nginx-health {
access_log off;
default_type text/plain;
return 200 "ok\n";
}
location / {
try_files $uri $uri/ /index.html;
}
}