Use envs instead of config.ini

parent 6311514a
import os
NAME = "nginx-redirector" NAME = "nginx-redirector"
VERSION = "1.0.0" VERSION = "1.0.0"
AUTHOR = "Nikita Yefremov, David Dobryakov" AUTHOR = "Nikita Yefremov, David Dobryakov"
...@@ -5,3 +7,10 @@ EMAIL = "kantegory@etersoft.ru" ...@@ -5,3 +7,10 @@ EMAIL = "kantegory@etersoft.ru"
PYTHON_VERSION = "3.8.1" PYTHON_VERSION = "3.8.1"
VERSION_STATUS = "alpha" VERSION_STATUS = "alpha"
# directory with maps files
MAPS_DIR = os.environ.get("MAPS_DIR", "/var/lib/redirector/maps")
# directory with generated files
CONFIG_DIR = os.environ.get("CONFIG_DIR", "/var/lib/redirector/location-includes")
# main yaml-config
CONFIG = os.environ.get("CONFIG", "/etc/redirector/config.yaml")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment