-
Notifications
You must be signed in to change notification settings - Fork 102
enh: add harp config #382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
enh: add harp config #382
Changes from all commits
67ebfa4
88e3d89
339bac2
2fdfba0
5d24fd0
0c56460
4335801
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| location /exapps/ { | ||
| proxy_set_header Host $host; | ||
| proxy_set_header X-Real-IP $remote_addr; | ||
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| proxy_set_header X-Forwarded-Proto $scheme; | ||
| proxy_read_timeout 1800s; | ||
|
|
||
| set $harp_addr appapi-harp:8780; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in my setup the I used this:
do not know what is more correct, my setup is a fresh one and is not fully tested... |
||
| proxy_pass http://$harp_addr/exapps/; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1404,6 +1404,32 @@ services: | |
| - ./authentik-custom-templates:/templates | ||
| - ./authentik-certs:/certs | ||
|
|
||
| appapi-harp: | ||
| image: ghcr.io/nextcloud/nextcloud-appapi-harp:latest | ||
| container_name: appapi-harp | ||
| network_mode: ${HP_NETWORK_MODE:-master_default} | ||
| volumes: | ||
| - /var/run/docker.sock:/var/run/docker.sock | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The convention here is |
||
| - ${CERT_PATH:-./data/ssl/harp/}:/certs | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 1329 uses it for |
||
| ports: | ||
| - "8780:8780" | ||
| - "8781:8781" | ||
| - "8782:8782" | ||
| environment: | ||
| - HP_SHARED_KEY=${HP_SHARED_KEY:-some_very_secure_password} | ||
| - HP_TRUSTED_PROXY_IPS={HP_TRUSTED_PROXY_IPS:-${DOCKER_SUBNET:-192.168.21.0/24}} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does |
||
| - NC_INSTANCE_URL=${HP_NC_INSTANCE_URL:-http://nextcloud.local} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rest of the stack parameterises host names with ${DOMAIN_SUFFIX} ( |
||
| - HP_FRP_DISABLE_TLS=${HP_FRP_DISABLE_TLS:-false} | ||
| - HP_EXAPPS_ADDRESS=${HP_EXAPPS_ADDRESS:-0.0.0.0:8780} | ||
| - HP_EXAPPS_HTTPS_ADDRESS=${HP_EXAPPS_HTTPS_ADDRESS:-0.0.0.0:8781} | ||
| - HP_FRP_ADDRESS=${HP_FRP_ADDRESS:-0.0.0.0:8782} | ||
| - HP_LOG_LEVEL=${HP_LOG_LEVEL:-info} | ||
| - HP_VERBOSE_START=${HP_VERBOSE_START:-1} | ||
| - HP_WATCHDOG_ENABLED=${HP_WATCHDOG_ENABLED:-true} | ||
| - HP_BLACKLIST_COUNT=${HP_BLACKLIST_COUNT:-10} | ||
| - HP_TIMEOUT_CLIENT=${HP_TIMEOUT_CLIENT:-30s} | ||
| - HP_TIMEOUT_SERVER=${HP_TIMEOUT_SERVER:-1800s} | ||
|
|
||
| volumes: | ||
| data: | ||
| config: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be good to add:
here to allow ExApps to receive websocket connections