nginx: update uci config
This commit is contained in:
parent
4a5957c16c
commit
46ae31e978
1 changed files with 6 additions and 9 deletions
|
@ -1,14 +1,11 @@
|
|||
|
||||
config main global
|
||||
config main 'global'
|
||||
option uci_enable 'true'
|
||||
|
||||
config server '_lan'
|
||||
list listen '4443 ssl default_server'
|
||||
list listen '[::]:4443 ssl default_server'
|
||||
list listen '443 ssl http2 default_server'
|
||||
list listen '[::]:443 ssl http2 default_server'
|
||||
option server_name '_lan'
|
||||
list include 'restrict_locally'
|
||||
list include 'conf.d/*.locations'
|
||||
option uci_manage_ssl 'self-signed'
|
||||
option ssl_certificate '/etc/nginx/conf.d/_lan.crt'
|
||||
option ssl_certificate_key '/etc/nginx/conf.d/_lan.key'
|
||||
option ssl_session_cache 'shared:SSL:32k'
|
||||
|
@ -16,7 +13,7 @@ config server '_lan'
|
|||
option access_log 'off; # logd openwrt'
|
||||
|
||||
config server '_redirect2ssl'
|
||||
list listen '8800'
|
||||
list listen '[::]:8800'
|
||||
list listen '80'
|
||||
list listen '[::]:80'
|
||||
option server_name '_redirect2ssl'
|
||||
option return '302 https://$host$request_uri'
|
||||
option return '302 https://$host$request_uri'
|
Loading…
Reference in a new issue