ServerName {{ forgejo_domain }}
ServerAdmin {{ forgejo_server_admin }}
DocumentRoot /var/www/empty
RewriteEngine on
RewriteCond %{SERVER_NAME} ={{ forgejo_domain }}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
ErrorLog ${APACHE_LOG_DIR}/{{ forgejo_domain }}.error.log
CustomLog ${APACHE_LOG_DIR}/{{ forgejo_domain }}.access.log combined
ServerName {{ forgejo_domain }}
ServerAdmin {{ forgejo_server_admin }}
ProxyPreserveHost On
ProxyRequests off
AllowEncodedSlashes NoDecode
ProxyPass / http://localhost:3000/ nocanon
ProxyPassReverse / http://localhost:3000/
ErrorLog ${APACHE_LOG_DIR}/{{ forgejo_domain }}.error.log
CustomLog ${APACHE_LOG_DIR}/{{ forgejo_domain }}.access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/{{ forgejo_domain }}/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/{{ forgejo_domain }}/privkey.pem