From f0a36fef7ef6c002e8af186f879950d99949b628 Mon Sep 17 00:00:00 2001 From: Toben Archer Date: Sat, 23 Jan 2021 15:15:07 +0000 Subject: [PATCH] Docs included I've also updated the configuration for the new traefik configuration. --- docs/applications/n8n.md | 14 ++++++++++++++ docs/configuration/application_ports.md | 1 + roles/n8n/tasks/main.yml | 8 +++++--- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 docs/applications/n8n.md diff --git a/docs/applications/n8n.md b/docs/applications/n8n.md new file mode 100644 index 00000000..c0f47016 --- /dev/null +++ b/docs/applications/n8n.md @@ -0,0 +1,14 @@ +# Nodemation (n8n) + +Homepage: [ihttps://n8n.io](https://n8n.io) + + +## Usage + +Set `n8n_enabled: true` in your `inventories//nas.yml` file. + +n8n is secured by default, he user and password can be set with: +* n8n_basic_auth_user: "" +* n8n_basic_auth_password: "" + +The default for these is "n8n_user" and "n8n_change_me" respectively, it is recommended to change these. diff --git a/docs/configuration/application_ports.md b/docs/configuration/application_ports.md index c06d693a..f41686ba 100644 --- a/docs/configuration/application_ports.md +++ b/docs/configuration/application_ports.md @@ -39,6 +39,7 @@ By default, applications can be found on the ports listed below. | Mosquitto | 9001 | Websocket | | Mylar | 8585 | HTTP | | MyMediaForAlexa | 52051 | | +| n8n | 5678 | HTTP | | Netdata | 19999 | | | Nextcloud | 8080 | | | NZBGet | 6789 | | diff --git a/roles/n8n/tasks/main.yml b/roles/n8n/tasks/main.yml index 3dbf0553..cc9d85b9 100644 --- a/roles/n8n/tasks/main.yml +++ b/roles/n8n/tasks/main.yml @@ -23,7 +23,9 @@ N8N_BASIC_AUTH_USER: "{{ n8n_basic_auth_user }}" N8N_BASIC_AUTH_PASSWORD: "{{ n8n_basic_auth_password }}" labels: - traefik.backend: "n8n" - traefik.frontend.rule: "Host:n8n.{{ ansible_nas_domain }}" traefik.enable: "{{ n8n_available_externally }}" - traefik.port: "5678" + traefik.http.routers.n8n.rule: "Host(`{{ n8n_hostname }}.{{ ansible_nas_domain }}`)" + traefik.http.routers.n8n.tls.certresolver: "letsencrypt" + traefik.http.routers.n8n.tls.domains[0].main: "{{ ansible_nas_domain }}" + traefik.http.routers.n8n.domains[0].sans: "*.{{ ansible_nas_domain }}" + traefik.http.services.gitea.loadbalancer.server.port: "5678"