Compare commits

...

3 Commits

Author SHA1 Message Date
bb
20f8fcccbe X509 install en priorité 2021-02-01 11:16:02 +01:00
am
a76aa215d3 modif main.yml 2021-02-01 11:02:16 +01:00
am
afdd827df3 ajout du proxy inverse 2021-02-01 09:40:04 +01:00
5 changed files with 38 additions and 5 deletions

View File

@ -12,8 +12,8 @@
- base
- goss
- snmp-agent
- vpn-stg-r
# - x509-r
# - vpn-stg-r
- x509-r
# - firewall-vpn-r
- ssh-cli
- syslog-cli

View File

@ -15,8 +15,8 @@
- dns-agence
- ssh-root-access
- snmp-agent
- vpn-stg-l
# - x509-l
# - vpn-stg-l
- x509-l
# - firewall-vpn-l
- ssh-cli
- syslog-cli

View File

@ -16,6 +16,7 @@ services:
- MYSQL_PASSWORD=root
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
TZ: Europe/Paris
app:
image: nextcloud
@ -31,3 +32,4 @@ services:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
TZ: Europe/Paris

View File

@ -24,7 +24,7 @@ server {
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:5678;
proxy_connect_timeout 900;
proxy_send_timeout 900;

View File

@ -29,3 +29,34 @@
shell: docker-compose up -d
args:
chdir: /root/nextcloud
- name: Installation de Nginx
package:
name: nginx
state: present
- name: Copie de /etc/nginx/site-availables/proxy
copy:
src: /root/tools/ansible/gsb2021/roles/docker-nextcloud/files/proxy
dest: /etc/nginx/sites-available
- name: Supression de /etc/nginx/sites-enabled/default
file:
path: /etc/nginx/sites-enabled/default
state: absent
- name: Creation de lien symbolique avec /etc/nginx/sites-available/proxy dans /etc/nginx/sites-enabled/proxy
file:
src: /etc/nginx/sites-available/proxy
dest: /etc/nginx/sites-enabled
state: link
- name: Redemmarage de Nginx
service:
name: nginx
state: restarted
- name: Copie de config.php dans /root/nextcloud/nextcloud/config
copy:
src: /root/tools/ansible/gsb2021/roles/docker-nextcloud/files/config.php
dest: /root/nextcloud/nextcloud/config