添加 etc/nginx/nginx
Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
parent
b757bcd4da
commit
17a787a447
17
etc/nginx/nginx
Normal file
17
etc/nginx/nginx
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
config main global
|
||||||
|
option uci_enable 'true'
|
||||||
|
|
||||||
|
config server '_lan'
|
||||||
|
list listen '80 default_server'
|
||||||
|
list listen '[::]:80 default_server'
|
||||||
|
option server_name '_lan'
|
||||||
|
list include 'restrict_locally'
|
||||||
|
list include 'conf.d/*.locations'
|
||||||
|
option uci_manage_ssl 'disabled' # ............ SSL
|
||||||
|
option access_log 'off; # logd openwrt'
|
||||||
|
|
||||||
|
config server '_redirect2ssl'
|
||||||
|
list listen '80'
|
||||||
|
list listen '[::]:80'
|
||||||
|
option server_name '_redirect2ssl'
|
||||||
|
option return '302 http://$host$request_uri' # ......... HTTP .........
|
Loading…
Reference in New Issue
Block a user