Skip to content

Commit

Permalink
# adjust openwrt asu nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Dec 24, 2024
1 parent 2242fca commit 4954c75
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions server/docker/app/nginx/node/base/conf/conf.d/openwrt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ server {
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Headers' * always;
add_header 'Access-Control-Allow-Methods' * always;
add_header 'Access-Control-Allow-Origin' 'https://openwrt-firmware.czy21.com' always;
add_header 'Access-Control-Allow-Origin' * always;

location / {
proxy_pass http://192.168.2.18:8081;
Expand All @@ -43,7 +43,7 @@ server {
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Headers' * always;
add_header 'Access-Control-Allow-Methods' * always;
add_header 'Access-Control-Allow-Origin' 'https://openwrt-firmware.czy21.com' always;
add_header 'Access-Control-Allow-Origin' * always;

if ($request_method = 'OPTIONS') {
return 204;
Expand All @@ -53,8 +53,11 @@ server {
proxy_pass http://192.168.2.12:8000;
}

location /api/overview {
proxy_pass http://192.168.2.12:8000/overview;
}

location /store/ {
proxy_pass http://192.168.2.12:8001/;
}

}

0 comments on commit 4954c75

Please sign in to comment.