From 23905ab75ce22a59a67f111030505ea114930370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kadl=C4=8D=C3=ADk?= Date: Tue, 26 Feb 2019 15:10:00 +0100 Subject: [PATCH] Set SERVER_NAME for copr frontend --- roles/copr/frontend-cloud/templates/copr.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/copr/frontend-cloud/templates/copr.conf b/roles/copr/frontend-cloud/templates/copr.conf index 501c14dbbd..ed0a3ab4d4 100644 --- a/roles/copr/frontend-cloud/templates/copr.conf +++ b/roles/copr/frontend-cloud/templates/copr.conf @@ -41,6 +41,13 @@ SEND_EMAILS = True PUBLIC_COPR_HOSTNAME = "{{ copr_frontend_public_hostname }}" +# When running the website through apache, +# this variable is automatically set from ServerName +# in the httpd config. Setting it in this file is needed +# for manage.py purposes +SERVER_NAME = "{{ copr_frontend_public_hostname }}" + + LOG_FILENAME = "/var/log/copr-frontend/frontend.log" LOG_DIR = "/var/log/copr-frontend/"