Add Redis for Nextcloud, plus some config tuning

This commit is contained in:
Salt 2021-08-24 01:12:12 -05:00
parent fc6739907e
commit 145dcfe3fb

View File

@ -72,11 +72,18 @@
ssl_certificate_key /etc/letsencrypt/live/desu.ltd/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/desu.ltd/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/desu.ltd/chain.pem; ssl_trusted_certificate /etc/letsencrypt/live/desu.ltd/chain.pem;
ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem; ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;
add_header Strict-Transport-Security "max-age=31536000";
location / { location / {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://nextcloud:80; proxy_pass http://nextcloud:80;
} }
location ^~ /.well-known {
location = /.well-known/carddav { return 301 /remote.php/dav/; }
location = /.well-known/caldav { return 301 /remote.php/dav/; }
location ^~ /.well-known { return 301 /index.php$uri; }
try_files $uri $uri/ =404;
}
} }
server { server {
listen 443 ssl; listen 443 ssl;
@ -96,6 +103,7 @@
include_tasks: tasks/app/{{ task }} include_tasks: tasks/app/{{ task }}
with_items: with_items:
- gulagbot.yml - gulagbot.yml
- redis.yml
loop_control: loop_control:
loop_var: task loop_var: task
tags: [ always ] tags: [ always ]