-
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.
Add auto generate for user on first run, add auto magic config -> env
- Loading branch information
Showing
7 changed files
with
220 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DOMAIN=localhost:8081 | ||
GOHUNT_USERNAME=test |
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 +1,2 @@ | ||
gohunt | ||
.env |
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,28 @@ | ||
{ | ||
on_demand_tls { | ||
ask http://127.0.0.1:8081/check_domain | ||
} | ||
|
||
} | ||
|
||
{$DOMAIN} { | ||
log { | ||
output stdout | ||
} | ||
|
||
reverse_proxy 127.0.0.1:8081 | ||
} | ||
|
||
*.{$DOMAIN} { | ||
|
||
# Log all requests | ||
log { | ||
output stdout | ||
} | ||
|
||
tls { | ||
on_demand | ||
} | ||
|
||
reverse_proxy 127.0.0.1:8081 | ||
} |
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
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,33 @@ | ||
services: | ||
postgres: | ||
image: postgres:13 | ||
environment: | ||
- POSTGRES_USER=gohunt | ||
- POSTGRES_PASSWORD=gohunt | ||
- POSTGRES_DB=gohunt | ||
volumes: | ||
- db-data:/var/lib/postgresql/data | ||
|
||
gohunt: | ||
image: ghcr.io/nhas/gohunt:main | ||
environment: | ||
- GOHUNT_USERNAME=${GOHUNT_USERNAME} | ||
- GOHUNT_PASSWORD=${GOHUNT_PASSWORD} | ||
# Settings that can be configured either from the docker env, or config file | ||
- Domain=${DOMAIN} | ||
- ListenAddress=:8081 | ||
- Features.Signup.Enabled=true | ||
- Notification.Webhooks.Enabled=true | ||
- Database.Host=postgres | ||
- Database.Port=5432 | ||
- Database.User=gohunt | ||
- Database.DBname=gohunt | ||
- Database.SSLmode=disabled | ||
- Database.Password=gohunt | ||
ports: | ||
- 8081:8081 | ||
|
||
volumes: | ||
db-data: | ||
caddy-data: | ||
caddy_config: |
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