From 3a958ff621062c5c46f53300ddd0f6dc5981c59d Mon Sep 17 00:00:00 2001 From: Viyurz Date: Tue, 2 Jul 2024 16:25:11 +0200 Subject: [PATCH] Update homepage --- env.yml | 2 +- roles/homepage/tasks/setup.yml | 11 ++-- roles/homepage/templates/docker-compose.yaml | 4 +- roles/homepage/templates/services.toml | 56 ++++++++++++++++++++ 4 files changed, 67 insertions(+), 6 deletions(-) create mode 100644 roles/homepage/templates/services.toml diff --git a/env.yml b/env.yml index e24f900..ce222c2 100644 --- a/env.yml +++ b/env.yml @@ -89,7 +89,7 @@ ports: element: 8084 etebase: 3735 hedgedoc: 8086 - homepage: 8082 + homepage: 8686 lldap: 17170 mailserver_smtp: 1025 mailserver_smtps: 1465 diff --git a/roles/homepage/tasks/setup.yml b/roles/homepage/tasks/setup.yml index 6a5daaa..5f60a7a 100644 --- a/roles/homepage/tasks/setup.yml +++ b/roles/homepage/tasks/setup.yml @@ -6,10 +6,13 @@ - absent - directory -- name: Template docker-compose.yaml to project directory +- name: Template docker-compose.yaml & services.toml to project directory template: - src: docker-compose.yaml - dest: "{{ project_dir }}/docker-compose.yaml" + src: "{{ item }}" + dest: "{{ project_dir }}/{{ item }}" owner: "{{ host_uid }}" group: "{{ host_uid }}" - mode: '640' + mode: '644' + loop: + - docker-compose.yaml + - services.toml diff --git a/roles/homepage/templates/docker-compose.yaml b/roles/homepage/templates/docker-compose.yaml index 86241ce..e838273 100644 --- a/roles/homepage/templates/docker-compose.yaml +++ b/roles/homepage/templates/docker-compose.yaml @@ -5,4 +5,6 @@ services: restart: always user: {{ users['homepage'] }}:{{ users['homepage'] }} ports: - - 127.0.0.1:{{ ports['homepage'] }}:8080 + - 127.0.0.1:{{ ports['homepage'] }}:8686 + volumes: + - ./services.toml:/etc/homepage/services.toml:ro diff --git a/roles/homepage/templates/services.toml b/roles/homepage/templates/services.toml new file mode 100644 index 0000000..9929ecc --- /dev/null +++ b/roles/homepage/templates/services.toml @@ -0,0 +1,56 @@ +[[services]] +name = "Element" +description = "Web client of Element, an instant messaging client implementing the Matrix protocol." +domain = "element.viyurz.fr" +language = "TypeScript" +repository_url = "https://github.com/element-hq/element-web" + +[[services]] +name = "EteBase" +description = "Server for EteSync, an end-to-end encrypted contacts, calendars, tasks and notes provider." +domain = "etebase.viyurz.fr" +language = "Python" +repository_url = "https://github.com/etesync/server" + +[[services]] +name = "HedgeDoc" +description = "A real-time collaborative markdown editor." +domain = "hedgedoc.viyurz.fr" +language = "TypeScript" +repository_url = "https://github.com/hedgedoc/hedgedoc" + +[[services]] +name = "Matrix" +description = "Synapse homeserver implemeting the Matrix protocol, an open standard for real-time communication supporting encryption and VoIP." +domain = "matrix.viyurz.fr" +language = "Python" +repository_url = "https://github.com/element-hq/synapse" + +[[services]] +name = "SearXNG" +description = "A privacy-respecting, hackable metasearch engine." +domain = "searx.viyurz.fr" +language = "Python" +repository_url = "https://github.com/searxng/searxng" + +[[services]] +name = "Stalwart Mail Server" +description = "Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)." +domain = "mail.viyurz.fr" +language = "Rust" +repository_url = "https://github.com/stalwartlabs/mail-server" + +[[services]] +name = "Stump" +description = "A comics, manga and digital book server with OPDS support." +domain = "stump.viyurz.fr" +language = "Rust / TypeScript" +repository_url = "https://github.com/stumpapp/stump" + +[[services]] +name = "Vaultwarden" +description = "Rust rewrite of the Bitwarden server, a password management service." +domain = "vw.viyurz.fr" +language = "Rust" +repository_url = "https://github.com/dani-garcia/vaultwarden" +