Added vite additional server allowed host

This commit is contained in:
2025-04-13 00:00:44 -04:00
parent 67334d5dd0
commit c354ea6d78
3 changed files with 9 additions and 2 deletions

5
.env
View File

@@ -24,7 +24,7 @@ MINIO_BUCKET=aviation
MINIO_PROTOCOL=http
MINIO_PORT=9000
MINIO_PORT_INTERNAL=9001
MINIO_BROWSER_REDIRECT_URL=${NGINX_PROTOCOL}://${NGINX_HOST}:${NGINX_HTTPS_PORT}/minio/
MINIO_BROWSER_REDIRECT_URL=${NGINX_PROTOCOL}://${NGINX_HOST}:${NGINX_HTTP_PORT}/minio/
UI_PORT=3000
API_PORT=5000
@@ -34,7 +34,8 @@ SSL_CA_PATH=../ssl/${SSL_CA_NAME}.pem
SSL_CERT_PATH=../ssl/localhost.crt
SSL_CERT_KEY_PATH=../ssl/localhost.key
VITE_API_URL=${NGINX_PROTOCOL}://${NGINX_HOST}:${NGINX_HTTPS_PORT}/api
VITE_API_URL=${NGINX_PROTOCOL}://${NGINX_HOST}:${NGINX_HTTP_PORT}/api
__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS:${NGINX_HOST}
ENVIRONMENT=development
ADMIN_EMAIL=admin@example.com

View File

@@ -1,6 +1,9 @@
#!make
SHELL := /bin/bash
export API_VERSION = $(shell awk -F ' = ' '$$1 ~ /package.version/ { gsub(/[\"]/, "", $$2); printf("%s",$$2) }' api/Cargo.toml)
export UI_VERSION := $(shell awk -F'"' '/"version"/ { print $$4 }' ui/package.json)
include .env
-include .env.local
export

View File

@@ -0,0 +1,3 @@
vars {
BASE_URL: https://aviation.bensherriff.com
}