From a66d4ed6360afff6585b068c57eab7a3ccdf07ea Mon Sep 17 00:00:00 2001 From: Aidan Fitzgerald Date: Thu, 18 Oct 2018 02:03:45 -0400 Subject: [PATCH] Add Apache config file (might need more tweaks) --- roles/gitea/templates/gitea.conf.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 roles/gitea/templates/gitea.conf.j2 diff --git a/roles/gitea/templates/gitea.conf.j2 b/roles/gitea/templates/gitea.conf.j2 new file mode 100644 index 000000000..ac9d9753f --- /dev/null +++ b/roles/gitea/templates/gitea.conf.j2 @@ -0,0 +1,13 @@ +# All URLs go to Gitea web server. Static content is bundled in the executable. +ProxyRequests off +ProxyPass {{ gitea_url }}/ http://localhost:{{ gitea_port }}/ + + + ProxyPassReverse / + ProxyHTMLEnable On + ProxyHTMLURLMap / {{ gitea_url }}/ + RequestHeader unset Accept-Encoding + + +# Disable TRACE to prevent cross-site tracing +TraceEnable off