Rudolf-Barbu / Ward

Server dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passing application port via environment variable

zekroTJA opened this issue · comments

Hey!

First of all: awesome project!

I installed it using Docker on my VPS behind Traefik as edge router and I noticed that the initialization-step is a bit unhandy in this particular use case because I need an open port to specify the application port which is then routed via Traefik.

It would be awesome if the initialization step could be bypassed by using predefined environment variables to set the initialization parameters.

For eyample:

WARD_SERVERNAME="My Server"
WARD_PORT="8080"
WARD_THEME="dark"

Hello! You can use setup ini to baypass initialization step. When you initialize application it creates setup ini with all parameters, so you can just copy and paste it for new instance. The path depends on you OS