31 lines
2.3 KiB
Plaintext
31 lines
2.3 KiB
Plaintext
# ========== Global config ==========
|
|
DB_DATA_LOCATION=./db # Relative path in which database should be stored.
|
|
CURRENT_DIRECTORY_ABSOLUTE_PATH=/path/to/kittyurl/ # Absolute path to current directory. Note the trailing slash.
|
|
|
|
# ============= Backend =============
|
|
BACKEND_PORT=6567 # Port on which the backend service should listen to requests.
|
|
BACKEND_VERSION=latest # Want to use a specific image for backend? Put the branch here followed by a release tag (like master-v1.2.3). Otherwise the latest one will get pulled.
|
|
ACCESS_TOKEN_PRIVATE_KEY=CHANGE_ME_TO_SOMETHING_RANDOM # Used to generate user tokens. Make sure this is pretty random.
|
|
TRUSTED_ORIGINS=http://localhost:6568,http://127.0.0.1:6568 # Comma separated list of trusted origins. Make sure to include your PUBLIC_URL here.
|
|
PATH_TO_WORDLIST=kittyBE/wordlist.example-large.ts # Relative path (considering CURRENT_DIRECTORY_ABSOLUTE_PATH) to wordlist to use when generating URLs. Note there is no slash at start.
|
|
|
|
# Postgres and TypeORM
|
|
PG_USER=kitty
|
|
PG_PASS=CHANGEME
|
|
PG_HOST=127.0.0.1
|
|
PG_PORT=5432
|
|
PG_DB=kittyurl
|
|
|
|
# Site info
|
|
PUBLIC_URL=https://example.com # Publicly accessible website root, used for rewrites. Note there is no trailing slash in the URL.
|
|
IS_PROXIED=false # Set to `true` if behind a reverse proxy, like apache/nginx.
|
|
USE_SUBDOMAINS=true # Whether to use subdomains for URL generation.
|
|
DEBUG=false # Set to `false` to disable some features not meant to be seen publicly (like swagger documentation).
|
|
|
|
# ============ Frontend ============
|
|
FRONTEND_PORT=6568 # Port on which the frontend service should listen to requests.
|
|
FRONTEND_VERSION=latest # Want to use a specific image for frontend? Put the branch here followed by a release tag (like master-v1.2.3). Otherwise the latest one will get pulled.
|
|
|
|
VITE_API_TARGET=http://localhost:6567 # The backend API base URL you want to use.
|
|
VITE_ALLOWED_HOST=example.com # Hosts allowed when visiting frontend. Probably should match PUBLIC_URL (tweak this when running a reverse proxy). To allow subdomains, add a dot (.) before the host address (vite.dev/config/server-options#server-allowedhosts).
|