From 17a787a447c12da90694b8a42cae48cf3d9b0397 Mon Sep 17 00:00:00 2001 From: zhao Date: Tue, 14 Jan 2025 00:34:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20etc/nginx/nginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- etc/nginx/nginx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 etc/nginx/nginx diff --git a/etc/nginx/nginx b/etc/nginx/nginx new file mode 100644 index 0000000..134c1e9 --- /dev/null +++ b/etc/nginx/nginx @@ -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 ......... \ No newline at end of file