Env Template

This commit is contained in:
Janic Voser 2022-10-25 23:11:29 +02:00
parent d96ba361fc
commit 9d3cec7cf6

View File

@ -0,0 +1,39 @@
# Nginx API
## Listen IP
{%- if api.ip is defined %}
NGINX_API_LISTEN_IP={{ api.ip }}
{%- else %}
NGINX_API_LISTEN_IP=localhost
{%- endif %}
## Listen Port
{%- if api.port is defined %}
NGINX_API_LISTEN_PORT={{ api.port }}
{%- else %}
NGINX_API_LISTEN_PORT=79
{%- endif %}
# Database
## Database Host
{%- if db.host is defined %}
DB_HOST={{ db.host }}
{%- else %}
DB_HOST=localhost
{%- endif %}
## Database Port
{%- if db.port is defined %}
DB_PORT={{ db.port }}
{%- else %}
DB_PORT=3306
{%- endif %}
## Database User
{%- if db.user is defined %}
DB_USER={{ db.user }}
{%- else %}
DB_USER={{0/0}} # Throw error if not set / can be overwritten by envrionment variable
{%- endif %}
## Database Password
{%- if db.user_pw is defined %}
DB_USERPW={{ db.user_pw }}
{%- else %}
DB_USERPW={{0/0}} # Throw error if not set / can be overwritten by envrionment variable
{%- endif %}