forked from notthebee/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Homer config is now generated by Ansible
Homer now parses the defaults/main.yml files inside of the subdirectories in the 'containers' folder for variables called 'homer_url', 'homer_category' and 'homer_name'. If 'homer_url' is present, the app will be shown on the Homer dashboard.\n You will also need to place an icon file with the same name as the app's folder in the 'containers' directory
- Loading branch information
Showing
42 changed files
with
378 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
container_name: authelia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
|
||
- name: Make sure the {{ container_name }} container is created and running | ||
docker_container: | ||
name: "{{ container_name }}" | ||
image: "authelia/authelia:latest" | ||
pull: true | ||
state: 'started' | ||
env: | ||
TZ: "{{ timezone }}" | ||
volumes: | ||
- "{{ docker_dir }}/{{ container_name }}:/config" | ||
restart_policy: unless-stopped | ||
register: container | ||
|
||
- name: Add {{ container_name }} to the SWAG network (reverse-proxy) | ||
docker_network: | ||
name: swag_network | ||
connected: | ||
- "{{ container_name }}" | ||
appends: yes | ||
when: enable_swag | ||
|
||
|
||
- name: Create the configuration directory | ||
file: | ||
path: "{{ docker_dir }}/{{ container_name }}" | ||
state: directory | ||
owner: "{{ username }}" | ||
group: "{{ username }}" | ||
|
||
- name: Install the configuration template | ||
template: | ||
src: configuration.yml.j2 | ||
dest: "{{ docker_dir }}/{{ container_name }}/configuration.yml" | ||
owner: "{{ username }}" | ||
group: "{{ username }}" | ||
register: configuration | ||
|
||
- name: Install the users template | ||
template: | ||
src: users_database.yml.j2 | ||
dest: "{{ docker_dir }}/{{ container_name }}/users_database.yml" | ||
owner: "{{ username }}" | ||
group: "{{ username }}" | ||
register: users | ||
|
||
- name: Restart the docker container on change | ||
docker_container: | ||
name: "{{ container_name }}" | ||
restart: yes | ||
when: container.changed or configuration.changed or users.changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
server.host: 0.0.0.0 | ||
server.port: 9091 | ||
theme: dark | ||
server: | ||
read_buffer_size: 4096 | ||
write_buffer_size: 4096 | ||
path: "authelia" | ||
jwt_secret: somethingsomethingrandomrecret | ||
default_redirection_url: https://{{ host }} | ||
authentication_backend: | ||
disable_reset_password: true | ||
file: | ||
path: /config/users_database.yml | ||
password: | ||
algorithm: sha512 | ||
iterations: 50000 | ||
access_control: | ||
default_policy: deny | ||
rules: | ||
- domain: | ||
- {{ host }} | ||
- "*.{{ host }}" | ||
policy: two_factor | ||
session: | ||
name: authelia_session | ||
secret: somerandomsecret | ||
expiration: 1h | ||
inactivity: 5m | ||
remember_me_duration: 1M | ||
domain: {{ host }} | ||
regulation: | ||
max_retries: 3 | ||
find_time: 2m | ||
ban_time: 5m | ||
totp: | ||
issuer: authelia.com | ||
storage: | ||
local: | ||
path: /config/db.sqlite3 | ||
notifier: | ||
disable_startup_check: false | ||
smtp: | ||
username: {{ email }} | ||
password: {{ email_password }} | ||
host: {{ email_smtp_host }} | ||
port: {{ email_smtp_port_startls }} | ||
sender: {{ email }} | ||
subject: "[Authelia] {title}" | ||
startup_check_address: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
users: | ||
{{ username }}: | ||
displayname: "{{ username }}" | ||
password: "{{ authelia_password | password_hash('sha512') }}" | ||
email: {{ email }} | ||
groups: | ||
- admins | ||
- dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
--- | ||
container_name: vaultwarden | ||
container_name: vaultwarden | ||
|
||
homer_url: "https://bitwarden.{{ host }}" | ||
|
||
homer_category: services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
--- | ||
container_name: deconz | ||
container_name: deconz | ||
|
||
homer_url: "http://{{ ansible_host }}:8085" | ||
|
||
homer_category: smarthome | ||
|
||
homer_name: "Phoscon-GW" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
--- | ||
container_name: deluge | ||
container_name: deluge | ||
|
||
homer_url: "http://{{ ansible_host }}:8112" | ||
|
||
homer_category: media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
container_name: home-assistant | ||
|
||
port: "8123" | ||
|
||
homer_url: "http://{{ ansible_host }}:8123" | ||
|
||
homer_category: smarthome | ||
|
||
homer_name: "Home Assistant" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
--- | ||
container_name: homer | ||
container_name: homer | ||
homer_title: "Secret 5G Corona Test Site" | ||
homer_subtitle: "Welcome to my" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@charset "UTF-8"; | ||
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;700&display=swap'); | ||
|
||
body, h1, h2, p, .title { | ||
font-family: Fira Sans !important; | ||
font-weight: 400 !important; | ||
} | ||
|
||
nav { | ||
display: none !important; | ||
} | ||
body #bighead .first-line .logo img { | ||
border-radius: 50%; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.