mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Update Nextcloud to 14.0.3 and add security http headers
This commit is contained in:
parent
467d848ea4
commit
7a72be04f9
3 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM nextcloud:14.0.1-fpm
|
||||
FROM nextcloud:14.0.3-fpm
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
supervisor \
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ services:
|
|||
- "traefik.backend=nextcloud"
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.frontend.rule=Host:cloud.banditlair.com"
|
||||
- "traefik.frontend.headers.customResponseHeaders=Strict-Transport-Security:max-age=15552000; includeSubDomains"
|
||||
- "traefik.frontend.headers.referrerPolicy=no-referrer"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.port=80"
|
||||
- "traefik.default.protocol=http"
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
docker_service:
|
||||
project_src: "{{docker_compose_files_folder}}/nextcloud"
|
||||
build: yes
|
||||
pull: yes
|
||||
state: present
|
||||
- name: Check if database tables exist
|
||||
command: docker-compose exec -T db mysql -u nextcloud -p{{nextcloud_mysql_password}} nextcloud -e "show tables;"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue