Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 654efa1

Browse files
committed
Updated huginn
1 parent 5e4465b commit 654efa1

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

manuscript/recipes/huginn.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cat config/opendkim/keys/huginn.example.com/mail.txt
3232

3333
### Prepare environment
3434

35-
Create /var/data/huginn/huginn.env, and populate with the following variables. Set the "INVITATION_CODE" variable if you want to require users to enter a code to sign up (protects the UI from abuse) (The full list of Huginn environment variables is available [here](https://github.com/huginn/huginn/blob/master/.env.example))
35+
Create /var/data/config/huginn/huginn.env, and populate with the following variables. Set the "INVITATION_CODE" variable if you want to require users to enter a code to sign up (protects the UI from abuse) (The full list of Huginn environment variables is available [here](https://github.com/huginn/huginn/blob/master/.env.example))
3636

3737
```
3838
# For huginn/huginn - essential
@@ -79,12 +79,21 @@ services:
7979
- /etc/localtime:/etc/localtime:ro
8080
networks:
8181
- internal
82-
- traefik
82+
- traefik_public
8383
deploy:
8484
labels:
85-
- traefik.frontend.rule=Host:huginn.funkypenguin.co.nz
86-
- traefik.docker.network=traefik
87-
- traefik.port=3000
85+
# traefik common
86+
- traefik.enable=true
87+
- traefik.docker.network=traefik_public
88+
89+
# traefikv1
90+
- traefik.frontend.rule=Host:huginn.example.com
91+
- traefik.port=3000
92+
93+
# traefikv2
94+
- "traefik.http.routers.huginn.rule=Host(`huginn.example.com`)"
95+
- "traefik.http.routers.huginn.entrypoints=https"
96+
- "traefik.http.services.huginn.loadbalancer.server.port=3000"
8897

8998
db:
9099
env_file: /var/data/config/huginn/huginn.env
@@ -115,7 +124,7 @@ services:
115124
- internal
116125

117126
networks:
118-
traefik:
127+
traefik_public:
119128
external: true
120129
internal:
121130
driver: overlay

0 commit comments

Comments
 (0)