From d7b8c2f974fe6254e536e6fe36d71d8cf8b503d5 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Sun, 19 May 2024 13:37:58 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index 645a547..c68279f 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -1258,7 +1258,8 @@ http { ) as f: f.write(r''' server { - listen 80; + server_name %s; + listen %d; charset UTF-8; client_max_body_size 2K; @@ -1272,6 +1273,8 @@ server { %s } ''' % ( + options.host, + options.port, DATA_DIR, location_section, ))