ReverseProxy Fixes, Nextcloud MariaDB Upgrade (#7)

* Working on getting Reverse Proxy certs to work.

* Upgrade mariadb to 10.6.

* Checking if anything has missed a check in.

* Let's Encrypt is working now after moving the location directive to the conf.d files. Unsure why nginx.conf is not passing it along, so added it to the examples too.
This commit is contained in:
2023-07-21 22:23:46 -07:00
committed by GitHub
parent 3c46dfec01
commit 4c24c30526
9 changed files with 64 additions and 16 deletions

View File

@ -21,8 +21,15 @@ server {
listen 80;
server_name html.example.com;
location /.well-known/acme-challenge/ {
default_type "text/plain";
root /etc/nginx/letsencrypt/;
}
# Redirect to a more secure protocol.
return 301 https://$host$request_uri;
location / {
return 301 https://$host$request_uri;
}
}
@ -36,7 +43,14 @@ server {
ssl_certificate /etc/nginx/certs/html.example.com/fullchain.pem;
ssl_certificate_key /etc/nginx/certs/html.example.com/privkey.pem;
location /.well-known/acme-challenge/ {
default_type "text/plain";
root /etc/nginx/letsencrypt/;
}
# Load the static web content.
root /etc/nginx/html/html.example.com;
location / {
root /etc/nginx/html/html.example.com;
}
}

View File

@ -21,8 +21,15 @@ server {
listen 80;
server_name proxy.example.com;
location /.well-known/acme-challenge/ {
default_type "text/plain";
root /etc/nginx/letsencrypt/;
}
# Redirect to a more secure protocol.
return 301 https://$host$request_uri;
location / {
return 301 https://$host$request_uri;
}
}
@ -36,6 +43,11 @@ server {
ssl_certificate /etc/nginx/certs/proxy.example.com/fullchain.pem;
ssl_certificate_key /etc/nginx/certs/proxy.example.com/privkey.pem;
location /.well-known/acme-challenge/ {
default_type "text/plain";
root /etc/nginx/letsencrypt/;
}
# Send traffic to upstream server
location / {
## General format is PROTOCOL://SERVER:PORT. For example: