diff options
Diffstat (limited to 'templates/nginx-certbot.conf.j2')
| -rw-r--r-- | templates/nginx-certbot.conf.j2 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/templates/nginx-certbot.conf.j2 b/templates/nginx-certbot.conf.j2 new file mode 100644 index 0000000..51eca20 --- /dev/null +++ b/templates/nginx-certbot.conf.j2 @@ -0,0 +1,49 @@ +worker_processes 1; + +# This default error log path is compiled-in to make sure configuration parsing +# errors are logged somewhere, especially during unattended boot when stderr +# isn't normally logged anywhere. This path will be touched on every nginx +# start regardless of error log location configured here. See +# https://trac.nginx.org/nginx/ticket/147 for more info. +# +#error_log /var/log/nginx/error.log; +# + +#pid logs/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + 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 logs/access.log main; + + sendfile on; + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + + #gzip on; + + server { + listen [::]:7878; + server_name localhost; + + #charset koi8-r; + + #access_log logs/host.access.log main; + location ^~ /.well-known/acme-challenge/ { + root {{ root }}; + } + } +} |
