Fallback to HTTP when no cert is available and letsencrypt is enabled, fixes #35
This commit is contained in:
27
nginx/nginx.conf.fallback
Normal file
27
nginx/nginx.conf.fallback
Normal file
@@ -0,0 +1,27 @@
|
||||
# Basic configuration
|
||||
user nginx;
|
||||
worker_processes 1;
|
||||
error_log /dev/stderr info;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
# Standard HTTP configuration with slight hardening
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
access_log /dev/stdout;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
server_tokens off;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location /.well-known/acme-challenge {
|
||||
proxy_pass http://admin:8081;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user