Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Dec 23, 2024
1 parent e500362 commit 8f6f235
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions server/docker/app/nginx/node/base/conf/conf.d/openwrt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
server {
http2 on;
listen 80;
listen 443 ssl;
server_name openwrt-firmware.czy21.com;

ssl_certificate /etc/nginx/cert/czy21.com.pem;
ssl_certificate_key /etc/nginx/cert/czy21.com.key;

location / {
proxy_pass http://192.168.2.18:8080;
}
}

server {
http2 on;
listen 80;
listen 443 ssl;
server_name openwrt-download.czy21.com;

ssl_certificate /etc/nginx/cert/czy21.com.pem;
ssl_certificate_key /etc/nginx/cert/czy21.com.key;

add_header Access-Control-Allow-Origin *;

location / {
proxy_pass http://192.168.2.18:8081;
}
}

server {
http2 on;
listen 80;
listen 443 ssl;
server_name openwrt-asu.czy21.com;

ssl_certificate /etc/nginx/cert/czy21.com.pem;
ssl_certificate_key /etc/nginx/cert/czy21.com.key;

add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods *;
add_header Access-Control-Allow-Headers *;
add_header Access-Control-Allow-Credentials true;

location / {

if ($request_method = 'OPTIONS') {
return 204;
}

proxy_pass http://192.168.2.12:8000;
}
}

0 comments on commit 8f6f235

Please sign in to comment.