-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
server/docker/app/nginx/node/base/conf/conf.d/openwrt.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |