+ Filebrowser stack
+ Cert setup for filebrowser service This is going to be served under gallery.leftcoast.space for a common fileserver thing that we use as a kind of scrapbook
This commit is contained in:
parent
0d634f6bdc
commit
a32f339ca1
22
playbooks/alpha/filebrowser/main.yml
Normal file
22
playbooks/alpha/filebrowser/main.yml
Normal file
@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
12
playbooks/alpha/nginx/gallery.leftcoast.space
Normal file
12
playbooks/alpha/nginx/gallery.leftcoast.space
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -22,16 +22,22 @@
|
|||||||
name: certbot
|
name: certbot
|
||||||
classic: yes
|
classic: yes
|
||||||
|
|
||||||
- name: Push Searx Config
|
- name: Push Configs
|
||||||
copy:
|
copy:
|
||||||
src: search.project-athens.xyz
|
src: "{{item}}"
|
||||||
dest: /etc/nginx/sites-available
|
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:
|
file:
|
||||||
src: /etc/nginx/sites-available/search.project-athens.xyz
|
src: "/etc/nginx/sites-available/{{item}}"
|
||||||
dest: /etc/nginx/sites-enabled/search.project-athens.xyz
|
dest: "/etc/nginx/sites-enabled/{{item}}"
|
||||||
state: link
|
state: link
|
||||||
|
loop:
|
||||||
|
- search.project-athens.xyz
|
||||||
|
- gallery.leftcoast.space
|
||||||
|
|
||||||
- name: Restart Nginx
|
- name: Restart Nginx
|
||||||
service:
|
service:
|
||||||
@ -44,3 +50,4 @@
|
|||||||
--domains "{{item}}"
|
--domains "{{item}}"
|
||||||
loop:
|
loop:
|
||||||
- search.project-athens.xyz
|
- search.project-athens.xyz
|
||||||
|
- gallery.leftcoast.space
|
||||||
|
Loading…
Reference in New Issue
Block a user