Browse Source

Change domain.com to cloud.domain.com

redis
Noah Williams 2 years ago
parent
commit
4a59199898
  1. 10
      nginx/sites-enabled/cloud.conf

10
nginx/sites-enabled/cloud.conf

@ -1,6 +1,6 @@
server {
listen 80;
server_name domain.com;
server_name cloud.domain.com;
return 301 https://$server_name$request_uri;
}
@ -8,10 +8,10 @@ server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name domain.com;
server_name cloud.domain.com;
ssl_certificate /etc/letsencrypt/domain.com/fullchain.cer;
ssl_certificate_key /etc/letsencrypt/domain.com/domain.com.key;
ssl_certificate /etc/letsencrypt/cloud.domain.com/fullchain.cer;
ssl_certificate_key /etc/letsencrypt/cloud.domain.com/cloud.domain.com.key;
location / {
@ -19,7 +19,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 2048m;
proxy_pass http://nextcloud:80;

Loading…
Cancel
Save