From de96886b61dde1d3fba5c4471832054b8ce91b04 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Tue, 6 Aug 2024 19:02:01 -0400 Subject: [PATCH] nginx conf files --- ops/nginx.conf | 75 -------------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 ops/nginx.conf diff --git a/ops/nginx.conf b/ops/nginx.conf deleted file mode 100644 index 29e97db..0000000 --- a/ops/nginx.conf +++ /dev/null @@ -1,75 +0,0 @@ -#user nobody; -worker_processes 4; - -#error_log logs/error.log; -#error_log logs/error.log notice; -#error_log logs/error.log info; - -#pid logs/nginx.pid; - - -events { - worker_connections 1024; -} - - -http { - client_max_body_size 4g; - - - lua_shared_dict auto_ssl 100m; - lua_shared_dict auto_ssl_settings 64k; - - resolver 8.8.4.4 8.8.8.8; - - init_by_lua_block { - auto_ssl = (require "resty.auto-ssl").new() - auto_ssl:set("storage_adapter", "resty.auto-ssl.storage_adapters.redis") - auto_ssl:set("allow_domain", function(domain) - return true - end) - auto_ssl:init() - } - - init_worker_by_lua_block { - auto_ssl:init_worker() - } - - ssl_session_cache shared:SSL:10m; - ssl_session_timeout 10m; - - server { - listen 127.0.0.1:8999; - - # Increase the body buffer size, to ensure the internal POSTs can always - # parse the full POST contents into memory. - client_body_buffer_size 128k; - client_max_body_size 128k; - - location / { - content_by_lua_block { - auto_ssl:hook_server() - } - } - } - - include mime.types; - default_type application/octet-stream; - - #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - # '$status $body_bytes_sent "$http_referer" ' - # '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log; - error_log /var/log/nginx/error.log; - - sendfile on; - #tcp_nopush on; - - #keepalive_timeout 0; - keepalive_timeout 65; - - #gzip on; - include sites-enabled/*; - -}