mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-28 20:42:20 +08:00
Fix letsencrypt cert generation for copr-fe-dev
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user