diff options
-rw-r--r-- | domains.yml | 2 | ||||
-rw-r--r-- | templates/nginx.conf.j2 | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/domains.yml b/domains.yml index e696bd0..154785e 100644 --- a/domains.yml +++ b/domains.yml @@ -18,6 +18,7 @@ domains: port: 5003 octoprint: name: "octoprint.dybiec.info" + aliases: ["creality.dybiec.info"] http_redirect: true websocket: true client_body_size: 200M @@ -28,6 +29,7 @@ domains: cache: true octoprint2: name: "octoprint2.dybiec.info" + aliases: ["prusa.dybiec.info"] http_redirect: true websocket: true client_body_size: 200M diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 60987fa..2927af8 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -15,7 +15,7 @@ server { listen 80; {% endif %} listen 443 ssl http2; - server_name {{ server.name }}; + server_name {{ server.name }} {{server.aliases|default([])| join(' ')}}; location / { |