Skip to content
Snippets Groups Projects
Commit 6ff762c6 authored by ʇǝɯS ǝp ɹǝıɥʇnɐפ's avatar ʇǝɯS ǝp ɹǝıɥʇnɐפ
Browse files

CSRF Error

parent 7d750c95
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ tu devras ajouter la ligne ci-dessous dans le fichier : seafile-data/seafile/con ...@@ -14,7 +14,7 @@ tu devras ajouter la ligne ci-dessous dans le fichier : seafile-data/seafile/con
CSRF_TRUSTED_ORIGINS = ["https://localhost"] # en changeant localhost par le nom dns de ta machine : chez-wam.com (si c'est le frontal en 443) ou cloud.chez-wam.com (etc...) CSRF_TRUSTED_ORIGINS = ["https://localhost"] # en changeant localhost par le nom dns de ta machine : chez-wam.com (si c'est le frontal en 443) ou cloud.chez-wam.com (etc...)
``` ```
cette variable (localhost) sera a changer dans chaque ficher de conf que tu rencontres .. cette variable (localhost) sera a changer dans chaque ficher de conf que tu rencontres ...
![img1](im1.png) ![img1](im1.png)
......
...@@ -3,10 +3,10 @@ services: ...@@ -3,10 +3,10 @@ services:
image: mariadb:10.11 image: mariadb:10.11
container_name: seafile-mysql container_name: seafile-mysql
environment: environment:
- MYSQL_ROOT_PASSWORD=pretil # Requested, set the root's password of MySQL service. - MYSQL_ROOT_PASSWORD=pretil
- MYSQL_LOG_CONSOLE=true - MYSQL_LOG_CONSOLE=true
volumes: volumes:
- ./seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store. - ./seafile-mysql/db:/var/lib/mysql
networks: networks:
seafile: seafile:
ipv4_address: 192.168.12.5 ipv4_address: 192.168.12.5
...@@ -39,24 +39,24 @@ services: ...@@ -39,24 +39,24 @@ services:
container_name: seafile container_name: seafile
ports: ports:
#- "8081:80" #- "8081:80"
- "8443:443" # If https is enabled, cancel the comme - "8443:443"
volumes: volumes:
- ./seafile-data:/shared # Requested, specifies the path to Seafile data persistent store. - ./seafile-data:/shared
networks: networks:
seafile: seafile:
ipv4_address: 192.168.12.4 ipv4_address: 192.168.12.4
environment: environment:
- DB_HOST=db - DB_HOST=db
- DB_ROOT_PASSWD=pretil # Requested, the value should be root's password of MySQL service. - DB_ROOT_PASSWD=pretil
- TIME_ZONE=Europe/Paris # Optional, default is UTC. Should be uncomment and set to your local time zone. - TIME_ZONE=Europe/Paris
- SEAFILE_ADMIN_EMAIL=gerald.dherbomez@univ-lille.fr # Specifies Seafile admin user, default is 'me@example.com'. - SEAFILE_ADMIN_EMAIL=gerald.dherbomez@univ-lille.fr
- SEAFILE_ADMIN_PASSWORD=pretil # Specifies Seafile admin password, default is 'asecret'. - SEAFILE_ADMIN_PASSWORD=pretil
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not. - SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=localhost # Specifies your host name if https is enabled. - SEAFILE_SERVER_HOSTNAME=localhost # ici tu changes par le nom dns de ton service seafile (ex cloud.chez-wam.com)
- FORCE_HTTPS_IN_CONF=true - FORCE_HTTPS_IN_CONF=true
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.seafile.rule=Host(`localhost`) - traefik.http.routers.seafile.rule=Host(`localhost`) # ici tu changes par le nom dns de ton service seafile (ex cloud.chez-wam.com)
- traefik.http.routers.seafile.tls.certresolver=le - traefik.http.routers.seafile.tls.certresolver=le
- traefik.http.routers.seafile.entrypoints=websecure - traefik.http.routers.seafile.entrypoints=websecure
depends_on: depends_on:
...@@ -75,7 +75,7 @@ services: ...@@ -75,7 +75,7 @@ services:
- php - php
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.nginx.rule=Host(`www.localhost`) - traefik.http.routers.nginx.rule=Host(`www.localhost`) # ici tu changes par le nom dns de ton service seafile (ex www.chez-wam.com)
- traefik.http.routers.nginx.entrypoints=websecure - traefik.http.routers.nginx.entrypoints=websecure
networks: networks:
seafile: seafile:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment