ac9b21eb60
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|4806|28|4778|15|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/privatebin/1//ansiblelint">Evolix » ansible-roles » privatebin #1</a>
gitea/ansible-roles/pipeline/head This commit looks good
31 lines
755 B
Django/Jinja
31 lines
755 B
Django/Jinja
<VirtualHost *:80>
|
|
ServerName {{ domains |first }}
|
|
|
|
{% if ssl.stat.exists %}
|
|
RewriteEngine On
|
|
RewriteCond %{HTTPS} !=on
|
|
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
|
|
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R=permanent]
|
|
{% endif %}
|
|
|
|
</VirtualHost>
|
|
|
|
{% if ssl.stat.exists %}
|
|
<VirtualHost *:443>
|
|
ServerName {{ domains |first }}
|
|
|
|
DocumentRoot /home/{{ service }}/PrivateBin
|
|
|
|
<Directory /home/{{ service }}/PrivateBin>
|
|
Options SymLinksIfOwnerMatch
|
|
AllowOverride Options=All AuthConfig Limit FileInfo Indexes
|
|
Require all granted
|
|
</Directory>
|
|
|
|
AssignUserID {{ service }} {{ service }}
|
|
|
|
IncludeOptional /etc/apache2/ssl/{{ service }}.conf
|
|
|
|
</VirtualHost>
|
|
{% endif %}
|