Add webserver for arch repo and update nextcloud config

This commit is contained in:
Paul-Henri Froidmont 2018-02-27 20:38:21 +01:00
parent 27c912a613
commit 3a028cf5c3
7 changed files with 57 additions and 3 deletions

View file

@ -21,6 +21,7 @@
- { role: plex-docker, tags: [ 'plex', 'docker' ] }
- { role: deluge-docker, tags: [ 'deluge', 'docker' ] }
- { role: monit, tags: [ 'monit' ] }
- { role: arch-mirror-docker, tags: [ 'mirror', 'docker' ] }
# vars_prompt:
# - name: "ansible_sudo_pass"
# prompt: "Sudo password"

View file

@ -0,0 +1,2 @@
COMPOSE_PROJECT_NAME=arch-mirror

View file

@ -0,0 +1,21 @@
version: '2.2'
networks:
proxy-tier:
external:
name: nginx-proxy
services:
arch-mirror:
image: nginx:latest
expose:
- 80
environment:
- VIRTUAL_HOST=arch.banditlair.com
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=80
volumes:
- /srv/repo:/usr/share/nginx/html:ro
networks:
- proxy-tier
restart: always

View file

@ -0,0 +1,2 @@
dependencies:
- nginx-proxy-docker

View file

@ -0,0 +1,5 @@
---
- name: Copy Arch Linux mirror config
copy: src=arch-mirror dest={{docker_compose_files_folder}}
- name: Start Arch mirror project
docker_service: project_src={{docker_compose_files_folder}}/arch-mirror state=present

View file

@ -11,7 +11,7 @@ $CONFIG = array (
'datadirectory' => '/var/www/html/data',
'overwrite.cli.url' => 'https://cloud.banditlair.com',
'dbtype' => 'mysql',
'version' => '12.0.4.3',
'version' => '13.0.0.14',
'dbname' => 'nextcloud',
'dbhost' => 'db',
'dbport' => '3306',
@ -24,7 +24,7 @@ $CONFIG = array (
'updater.release.channel' => 'stable',
'loglevel' => '1',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauthtype' => 'PLAIN',
'mail_smtpsecure' => 'ssl',
'mail_smtpauth' => 1,
'mail_from_address' => 'noreply',
@ -34,4 +34,27 @@ $CONFIG = array (
'mail_smtpname' => 'noreply@banditlair.com',
'mail_smtppassword' => '{{email_password}}',
'filelocking.enabled' => true,
'memcache.local' => '\\OC\\Memcache\\Redis',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'port' => 6379,
),
'theme' => '',
);

View file

@ -14,7 +14,7 @@ services:
- VIRTUAL_HOST=banditlair.com
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=8888
- LETSENCRYPT_HOST=banditlair.com,mail.banditlair.com,mailu.banditlair.com,webmail.banditlair.com,gitlab.banditlair.com,cloud.banditlair.com,office.banditlair.com,plex.banditlair.com,deluge.banditlair.com,rpg.banditlair.com,matrix.banditlair.com,emby.banditlair.com
- LETSENCRYPT_HOST=banditlair.com,mail.banditlair.com,mailu.banditlair.com,webmail.banditlair.com,gitlab.banditlair.com,cloud.banditlair.com,plex.banditlair.com,deluge.banditlair.com,rpg.banditlair.com,matrix.banditlair.com,emby.banditlair.com,arch.banditlair.com
- LETSENCRYPT_EMAIL=letsencrypt.account@banditlair.com
networks:
- proxy-tier