Update install_nextcloud_aio.yml

This commit is contained in:
jmdekker2
2025-05-20 16:24:39 +02:00
committed by GitHub
parent 3cdc51e1bf
commit 8782c36169

View File

@@ -111,7 +111,7 @@
args: args:
creates: "/etc/letsencrypt/live/{{ domain }}/fullchain.pem" creates: "/etc/letsencrypt/live/{{ domain }}/fullchain.pem"
- name: Genereer definitieve NGINX-config met SSL - name: Genereer definitieve NGINX-config met SSL en Collabora proxy
copy: copy:
dest: /etc/nginx/sites-available/nextcloud-aio dest: /etc/nginx/sites-available/nextcloud-aio
content: | content: |
@@ -130,6 +130,7 @@
ssl_certificate /etc/letsencrypt/live/{{ domain }}/fullchain.pem; ssl_certificate /etc/letsencrypt/live/{{ domain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ domain }}/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/{{ domain }}/privkey.pem;
# Nextcloud AIO
location / { location / {
proxy_pass http://127.0.0.1:11000; proxy_pass http://127.0.0.1:11000;
proxy_ssl_verify off; proxy_ssl_verify off;
@@ -140,9 +141,39 @@
proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Proto https;
} }
# Certbot
location /.well-known/acme-challenge/ { location /.well-known/acme-challenge/ {
root {{ webroot_path }}; root {{ webroot_path }};
} }
# Collabora Online (CODE/COOL) Proxy settings
location ^~ /loleaflet {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Host $host;
}
location ^~ /hosting/discovery {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Host $host;
}
location ^~ /lool {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_read_timeout 3600s;
proxy_connect_timeout 3600s;
proxy_send_timeout 3600s;
}
location ^~ /browser {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Host $host;
}
} }
- name: Herlaad NGINX met definitieve config - name: Herlaad NGINX met definitieve config