Fix letsencrypt cert generation for copr-fe-dev

This commit is contained in:
Jakub Kadlčík
2018-11-28 19:27:37 +01:00
parent e3a7bfda34
commit 1f4cb30e75
2 changed files with 10 additions and 4 deletions

View File

@@ -117,6 +117,13 @@
tags:
- config
- name: Set SELinux context for certs generation
sefcontext:
target: "/srv/web/acme-challenge/.well-known"
setype: httpd_sys_content_t
state: present
when: devel
- name: enable services
service: state=started enabled=yes name={{ item }}
with_items:

View File

@@ -26,15 +26,14 @@ WSGIScriptAlias / /usr/share/copr/coprs_frontend/application
WSGIApplicationGroup %{GLOBAL}
Require all granted
</Directory>
</VirtualHost>
{% if devel %}
<VirtualHost *:80>
{% if devel %}
RewriteEngine on
RewriteRule ^/\.well-known/(.*) /srv/web/acme-challenge/.well-known/$1 [L]
RewriteRule "^/?(.*)" "https://%{HTTP_HOST}/$1" [L,R=301,NE]
{% endif %}
</VirtualHost>
{% endif %}
<IfModule mod_status.c>
ExtendedStatus On