From 45c5ffff229a4af58c6d3f706411e4d8ec936004 Mon Sep 17 00:00:00 2001 From: NKay Date: Sat, 22 Jun 2024 23:42:47 +0200 Subject: [PATCH 1/3] Add GenericWithPort --- src/components/services/GenericWithPort.vue | 85 +++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/components/services/GenericWithPort.vue diff --git a/src/components/services/GenericWithPort.vue b/src/components/services/GenericWithPort.vue new file mode 100644 index 000000000..7d60bf4b7 --- /dev/null +++ b/src/components/services/GenericWithPort.vue @@ -0,0 +1,85 @@ + + + + + From 8145b3936962b60767c601d1f30909e071a397cd Mon Sep 17 00:00:00 2001 From: nkay08 Date: Mon, 1 Jul 2024 10:08:19 +0200 Subject: [PATCH 2/3] Add GenericWithPort to documentation --- docs/customservices.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/customservices.md b/docs/customservices.md index cc089a57b..ed175937b 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -10,6 +10,7 @@ within Homer: - [Custom Services](#custom-services) - [Common options](#common-options) + - [GenericWithPort](#gemericwithport) - [PiHole](#pihole) - [OpenWeatherMap](#openweathermap) - [Medusa](#medusa) @@ -51,6 +52,17 @@ If you experiencing any issue, please have a look to the [troubleshooting](troub type: "" ``` +## GenericWithPort +Is shown as a generic service, but you can specify an additional port where the service is running, in case there is no DNS for the domain or reverse proxy for this service. +A link to access this service via port is added to which the browser is redirected based on the base url where the user accessed homer. +```yaml +- name: "My Service" + logo: "assets/tools/sample.png" + url: "http://my-service.domain" + port: + type: "GenericWithPort" +``` + ## PiHole Using the PiHole service you can display info about your local PiHole instance right on your Homer dashboard. @@ -479,4 +491,4 @@ You need to set the type to HomeAssistant, provide an api key and enable cors on separator: " " # optional, how to separate items ``` To create an API token on HomeAssistant, follow the [official documentation here](https://developers.home-assistant.io/docs/auth_api/#long-lived-access-token). -To enable cors on HomeAssistant, edit your `configuration.yml` and add the IP of Homer to `https: cors_allowed_origins` \ No newline at end of file +To enable cors on HomeAssistant, edit your `configuration.yml` and add the IP of Homer to `https: cors_allowed_origins` From e298dd22bcce844e08e5179c84b46ed66a3d49d3 Mon Sep 17 00:00:00 2001 From: nkay08 Date: Mon, 1 Jul 2024 10:10:02 +0200 Subject: [PATCH 3/3] Fix typo in anchor --- docs/customservices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/customservices.md b/docs/customservices.md index ed175937b..3fab6a6dd 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -10,7 +10,7 @@ within Homer: - [Custom Services](#custom-services) - [Common options](#common-options) - - [GenericWithPort](#gemericwithport) + - [GenericWithPort](#genericwithport) - [PiHole](#pihole) - [OpenWeatherMap](#openweathermap) - [Medusa](#medusa)