Revert
This commit is contained in:
@@ -15,9 +15,8 @@ server {
|
||||
error_log /opt/bitnami/nginx/logs/error.log;
|
||||
access_log /opt/bitnami/nginx/logs/access.log;
|
||||
|
||||
location '/.well-known/acme-challenge' {
|
||||
default_type "text/plain";
|
||||
proxy_pass http://certbot_upstream;
|
||||
location / {
|
||||
root /opt/bitnami/nginx/html;
|
||||
}
|
||||
|
||||
rewrite ^ https://$http_host$request_uri? permanent; #Redirect traffic to HTTPS
|
||||
|
||||
@@ -6,10 +6,6 @@ upstream ghost {
|
||||
server ghost:2368;
|
||||
}
|
||||
|
||||
upstream certbot_upstream{
|
||||
server certbot:80;
|
||||
}
|
||||
|
||||
# HTTP
|
||||
server {
|
||||
listen 8080 default_server;
|
||||
@@ -25,12 +21,7 @@ server {
|
||||
client_max_body_size 100M;
|
||||
|
||||
location / {
|
||||
root /opt/bitnami/nginx/html;
|
||||
}
|
||||
|
||||
location '/.well-known/acme-challenge' {
|
||||
default_type "text/plain";
|
||||
proxy_pass http://certbot_upstream;
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
####### Proxies #######
|
||||
@@ -64,4 +55,9 @@ server {
|
||||
proxy_pass http://tomcat;
|
||||
}
|
||||
|
||||
location ~ /\.well-known/acme-challenge {
|
||||
root /opt/bitnami/nginx/html;
|
||||
allow all;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user