Move the 0_pagure.conf apache configuration file from a file to a template
This commit is contained in:
parent
cf582b5c3e
commit
4cc45d279c
2 changed files with 7 additions and 3 deletions
|
@ -209,9 +209,8 @@
|
|||
- pagure
|
||||
|
||||
- name: Install the configuration file to activate https
|
||||
copy: >
|
||||
src={{ item }} dest=/etc/httpd/conf.d/{{ item }}
|
||||
owner=root group=root mode=0644
|
||||
template: src={{ item }} dest=/etc/httpd/conf.d/{{ item }}
|
||||
owner=root group=root mode=0644
|
||||
with_items:
|
||||
- 0_pagure.conf
|
||||
tags:
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
<VirtualHost *:80>
|
||||
{% if env == 'pagure-staging' %}
|
||||
ServerName stg.pagure.io
|
||||
Redirect permanent / https://stg.pagure.io/
|
||||
{% else %}
|
||||
ServerName pagure.io
|
||||
Redirect permanent / https://pagure.io/
|
||||
{% endif %}
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
Loading…
Add table
Add a link
Reference in a new issue