diff --git a/playbooks/alpha/filebrowser/main.yml b/playbooks/alpha/filebrowser/main.yml new file mode 100644 index 0000000..db9d904 --- /dev/null +++ b/playbooks/alpha/filebrowser/main.yml @@ -0,0 +1,22 @@ +# This playbook goes through the process of setting up a simple FTP server on +# the target host. +--- +- hosts: alpha + become: yes + vars: + MOUNTPOINT: /mnt/fam-files + tasks: + - name: Setup Filebrowser Container + community.docker.docker_container: + name: filebrowser + image: filebrowser/filebrowser + restart_policy: always + volumes: + - "{{MOUNTPOINT}}/data:/srv" + ports: + - "8000:80" + user: "0:0" + + + + diff --git a/playbooks/alpha/nginx/gallery.leftcoast.space b/playbooks/alpha/nginx/gallery.leftcoast.space new file mode 100644 index 0000000..92a15bd --- /dev/null +++ b/playbooks/alpha/nginx/gallery.leftcoast.space @@ -0,0 +1,12 @@ +# This file contains a base configuration file for the projectathens +# It is to be overwritten by certbot later on so adjusting this config +# should not happen on the target server + +server { + server_name gallery.leftcoast.space; + location / { + proxy_pass http://127.0.0.1:8000; + } +} + + diff --git a/playbooks/alpha/nginx/main.yml b/playbooks/alpha/nginx/main.yml index 5ac0acb..1bfa413 100644 --- a/playbooks/alpha/nginx/main.yml +++ b/playbooks/alpha/nginx/main.yml @@ -22,16 +22,22 @@ name: certbot classic: yes - - name: Push Searx Config + - name: Push Configs copy: - src: search.project-athens.xyz - dest: /etc/nginx/sites-available + src: "{{item}}" + dest: "/etc/nginx/sites-available/{{item}}" + loop: + - search.project-athens.xyz + - gallery.leftcoast.space - - name: Enable Site in Nginx + - name: Enable Sites in Nginx file: - src: /etc/nginx/sites-available/search.project-athens.xyz - dest: /etc/nginx/sites-enabled/search.project-athens.xyz + src: "/etc/nginx/sites-available/{{item}}" + dest: "/etc/nginx/sites-enabled/{{item}}" state: link + loop: + - search.project-athens.xyz + - gallery.leftcoast.space - name: Restart Nginx service: @@ -44,3 +50,4 @@ --domains "{{item}}" loop: - search.project-athens.xyz + - gallery.leftcoast.space