Running Ansible Tower with Caddy web server

Has somebody run Ansible Tower with Caddy web server and would like to share their Caddyfile? As Tower is a Python WSGI application I do not know how to connect the Caddy server to it. I want to use Caddy instead of the bundled Apache. Here are some starting points:

A discussion on Caddys GitHub page.

Apache config (/etc/httpd/conf.d/awx-httpd-80.conf):

`

RewriteEngine On

don’t redirect HTTPs

RewriteCond %{HTTPS} off

don’t redirect /api traffic that requested explicit http://

RewriteRule ^/api - [L]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

ServerName localhost
ServerAlias *
DocumentRoot /var/lib/awx/public

WSGIScriptAlias / /var/lib/awx/wsgi.py
WSGIPassAuthorization On

WSGIDaemonProcess awx_plain user=awx group=awx processes=2 threads=20 maximum-requests=1000 display-name=“%{GROUP}”
WSGIProcessGroup awx_plain

Alias /favicon.ico /var/lib/awx/public/static/favicon.ico
Alias /static/ /var/lib/awx/public/static/

<Directory /var/lib/awx/>

= 2.3>
Require all granted

<IfVersion < 2.3>
Order deny,allow
Allow from all


<Directory /var/lib/awx/public/>
= 2.3>
Require all granted

<IfVersion < 2.3>
Order deny,allow
Allow from all

`

For tower support, please utilize https://support.ansible.com/

This mailing list is for the open source ansible project.