diff options
author | crupest <crupest@outlook.com> | 2022-11-19 13:00:13 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-19 13:00:13 +0800 |
commit | 5fe53ec36e9298fd40a36877a9a5ceb791814f50 (patch) | |
tree | 9fe248e5379c66cbaa740243bebc04bb7df7cd29 /tool/modules/path.py | |
parent | 02cb10f9dcf5cd228f563f28e607ad7403a5aa9c (diff) | |
download | crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.tar.gz crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.tar.bz2 crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.zip |
No caddy, only nginx and certbot.
Diffstat (limited to 'tool/modules/path.py')
-rw-r--r-- | tool/modules/path.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tool/modules/path.py b/tool/modules/path.py new file mode 100644 index 0000000..94adc27 --- /dev/null +++ b/tool/modules/path.py @@ -0,0 +1,13 @@ +import os.path + +script_dir = os.path.relpath(os.path.dirname(__file__)) +project_dir = os.path.normpath(os.path.join(script_dir, "../../")) +template_dir = os.path.join(project_dir, "template") +nginx_template_dir = os.path.join(template_dir, "nginx") +data_dir = os.path.join(project_dir, "data") +tool_dir = os.path.join(project_dir, "tool") +config_file_path = os.path.join(data_dir, "config") +nginx_config_dir = os.path.join(project_dir, "nginx-config") + +__all__ = ["script_dir", "project_dir", "template_dir", + "nginx_template_dir", "data_dir", "config_file_path", "tool_dir", "nginx_config_dir"] |