Adding a first version of a CI script
This commit is contained in:
@@ -5,7 +5,7 @@ stages:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
APP_REPO: "https://github.com/barais/doodlestudent.git"
|
APP_REPO: "https://github.com/barais/doodlestudent.git"
|
||||||
SUBMODULE_PATH: "app"
|
SUBMODULE_PATH: "doodlestudent"
|
||||||
|
|
||||||
check_app_update:
|
check_app_update:
|
||||||
stage: check
|
stage: check
|
||||||
|
|||||||
11
nginx.conf
11
nginx.conf
@@ -1,7 +1,9 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 443 ssl;
|
||||||
server_name _;
|
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;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
@@ -9,7 +11,7 @@ server {
|
|||||||
# Proxy API requests to the back service
|
# Proxy API requests to the back service
|
||||||
##########################
|
##########################
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://back:8080/;
|
proxy_pass http://back:8080/api/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
@@ -38,4 +40,9 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Connection "";
|
proxy_set_header Connection "";
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name tondomaine.com;
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user