Skip to content
Snippets Groups Projects
Commit 07f4b49f authored by Fabien Zucchet's avatar Fabien Zucchet
Browse files

Commit new file

parent ee4dade7
No related branches found
No related tags found
No related merge requests found
FROM mysql:5.7
COPY ./databases_dump.sql /docker-entrypoint-initdb.d/
\ No newline at end of file
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -30,8 +30,6 @@ services:
AUTH_REDIRECT_URI: http://localhost:8080/api/fallback
ports:
- 8000:8000
volumes:
- ./back:/app
links:
- mysql
front:
......@@ -40,8 +38,6 @@ services:
PROD: "true"
ports:
- 8080:80
volumes:
- ./front/src:/app/src
links:
- back
......
# Voila la conf nginx pour le reverse proxy sur la VM. Elle est pour http only donc je te conseille de faire :
# 1) installer nginx
# 2) mettre la configuration et reload nginx, vérifier que ça marche pour http
# 3) install avec apt certbot et python3-certbot-nginx
# 4) certbot --nginx en choisissant l'option redirect quand demandé
# 5) Normalement ça fonctionne en https après
server {
server_name demokub.cosx.cs-campus.fr; # CHANGE DNS HERE
location / {
proxy_pass_header Authorization;
proxy_pass http://localhost:30123; # CHANGE PORT HERE
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Connection “”;
proxy_buffering off;
client_max_body_size 0;
proxy_read_timeout 36000s;
proxy_redirect off;
}
listen 80;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment