Adding a first version of a CI script

This commit is contained in:
Alexis Leboeuf
2026-02-16 12:23:19 +01:00
parent f34f5719fd
commit 8c49e7b6ee
2 changed files with 10 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ stages:
variables:
APP_REPO: "https://github.com/barais/doodlestudent.git"
SUBMODULE_PATH: "app"
SUBMODULE_PATH: "doodlestudent"
check_app_update:
stage: check

View File

@@ -1,7 +1,9 @@
server {
listen 80;
listen 443 ssl;
server_name _;
ssl_certificate /etc/letsencrypt/live/tondomaine.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/tondomaine.com/privkey.pem;
root /usr/share/nginx/html;
index index.html;
@@ -9,7 +11,7 @@ server {
# Proxy API requests to the back service
##########################
location /api/ {
proxy_pass http://back:8080/;
proxy_pass http://back:8080/api/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -38,4 +40,9 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Connection "";
}
},
server {
listen 80;
server_name tondomaine.com;
return 301 https://$host$request_uri;
}