fix uat domain
parent
abc0c5b45a
commit
3489a99f50
|
@ -1,6 +1,6 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name uat.api.retropilot.org;
|
server_name api.uat.retropilot.org;
|
||||||
location /.well-known/acme-challenge/ {
|
location /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ server {
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name uat.api.retropilot.org;
|
server_name api.uat.retropilot.org;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
@ -21,8 +21,8 @@ server {
|
||||||
proxy_pass http://server:8080;
|
proxy_pass http://server:8080;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/uat.api.retropilot.org/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/api.uat.retropilot.org/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/uat.api.retropilot.org/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/api.uat.retropilot.org/privkey.pem;
|
||||||
|
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||||
|
|
|
@ -27,17 +27,17 @@ SMTP_PASS=
|
||||||
SMTP_FROM="no-reply@retropilot.org"
|
SMTP_FROM="no-reply@retropilot.org"
|
||||||
|
|
||||||
# base url of the retropilot server
|
# base url of the retropilot server
|
||||||
BASE_URL="https://uat.api.retropilot.org/"
|
BASE_URL="https://api.uat.retropilot.org/"
|
||||||
# base url sent to devices for POSTing drives & logs
|
# base url sent to devices for POSTing drives & logs
|
||||||
BASE_UPLOAD_URL="https://uat.api.retropilot.org/backend/post_upload"
|
BASE_UPLOAD_URL="https://api.uat.retropilot.org/backend/post_upload"
|
||||||
# base download url for drive & log data
|
# base download url for drive & log data
|
||||||
BASE_DRIVE_DOWNLOAD_URL="https://uat.api.retropilot.org/realdata/"
|
BASE_DRIVE_DOWNLOAD_URL="https://api.uat.retropilot.org/realdata/"
|
||||||
# path mapping of above download url for expressjs, prefix with "/"
|
# path mapping of above download url for expressjs, prefix with "/"
|
||||||
BASE_DRIVE_DOWNLOAD_PATH_MAPPING="/realdata"
|
BASE_DRIVE_DOWNLOAD_PATH_MAPPING="/realdata"
|
||||||
# relative or absolute ( "/..." for absolute path )
|
# relative or absolute ( "/..." for absolute path )
|
||||||
STORAGE_PATH="/realdata/"
|
STORAGE_PATH="/realdata/"
|
||||||
|
|
||||||
CABANA_URL="https://uat.api.retropilot.org/cabana/index.html"
|
CABANA_URL="https://api.uat.retropilot.org/cabana/index.html"
|
||||||
|
|
||||||
DEVICE_STORAGE_QUOTA_MB=200000
|
DEVICE_STORAGE_QUOTA_MB=200000
|
||||||
DEVICE_EXPIRATION_DAYS=30
|
DEVICE_EXPIRATION_DAYS=30
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# User Acceptance Testing (UAT) environment
|
# User Acceptance Testing (UAT) environment
|
||||||
|
|
||||||
Hostname: `uat.api.retropilot.org`
|
Hostname: `api.uat.retropilot.org`
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ services:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
# API service forwards requests to container port 8080
|
# API service forwards requests to container port 8080
|
||||||
- "traefik.http.services.api.loadbalancer.server.port=8080"
|
- "traefik.http.services.api.loadbalancer.server.port=8080"
|
||||||
# Expose api at https://uat.api.retropilot.org
|
# Expose api at https://api.uat.retropilot.org
|
||||||
- "traefik.http.routers.api.rule=Host(`api.uat.retropilot.org`)"
|
- "traefik.http.routers.api.rule=Host(`api.uat.retropilot.org`)"
|
||||||
- "traefik.http.routers.api.entrypoints=websecure"
|
- "traefik.http.routers.api.entrypoints=websecure"
|
||||||
- "traefik.http.routers.api.service=api@docker"
|
- "traefik.http.routers.api.service=api@docker"
|
||||||
|
|
|
@ -7,7 +7,7 @@ if ! [ -x "$(command -v docker-compose)" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
domains=(uat.api.retropilot.org)
|
domains=(api.uat.retropilot.org)
|
||||||
rsa_key_size=4096
|
rsa_key_size=4096
|
||||||
data_path="./data/certbot"
|
data_path="./data/certbot"
|
||||||
email="" # Adding a valid address is strongly recommended
|
email="" # Adding a valid address is strongly recommended
|
||||||
|
|
|
@ -6,6 +6,6 @@ index 1525e1715..a58067926 100755
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
export PASSIVE="0"
|
export PASSIVE="0"
|
||||||
+export API_HOST="https://uat.api.retropilot.org"
|
+export API_HOST="https://api.uat.retropilot.org"
|
||||||
exec ./launch_chffrplus.sh
|
exec ./launch_chffrplus.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue