mirror of
https://github.com/kenzok8/small-package
synced 2025-09-20 19:11:30 +08:00
32 lines
955 B
Plaintext
32 lines
955 B
Plaintext
|
|
config main global
|
|
option uci_enable 'true'
|
|
|
|
config server '_lan'
|
|
list listen '80 default_server'
|
|
list listen '[::]:80 default_server'
|
|
option server_name 'op'
|
|
option index 'luci index.html index.htm'
|
|
list rewrite '"^/$" $scheme://$host/luci/ permanent'
|
|
list include 'conf.d/*.locations'
|
|
option access_log 'off; # logd openwrt'
|
|
|
|
config server '_ssl'
|
|
list listen '443 ssl'
|
|
list listen '[::]:443 ssl'
|
|
option server_name '_ssl'
|
|
option index 'luci index.html index.htm'
|
|
list rewrite '"^/$" $scheme://$host/luci/ permanent'
|
|
list include 'conf.d/*.locations'
|
|
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'
|
|
option ssl_session_timeout '64m'
|
|
option access_log 'off; # logd openwrt'
|
|
|
|
config server '_redirect2ssl'
|
|
#list listen '80'
|
|
#list listen '[::]:80'
|
|
#option server_name '_redirect2ssl'
|
|
#option return '302 https://$host$request_uri'
|