Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions data/nginx/vhost.d/nextcloud.local_location
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
location /exapps/ {
set $harp_addr nextcloud-appapi-harp:8780;
proxy_pass http://$harp_addr;
}

Empty file added data/ssl/harp/.gitkeep
Empty file.
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,26 @@ services:
- EX_APPS_NET=${EX_APPS_NET:-ipv4@localhost}
- EX_APPS_COUNT=${EX_APPS_COUNT:-50}

appapi-harp:
image: ghcr.io/nextcloud/nextcloud-appapi-harp:latest
container_name: nextcloud-appapi-harp
network_mode: ${HP_NETWORK_MODE:-master_default}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious about those parts, why do we need to set the network mode here actually?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One can work with different kinds of configurations like host or any other network, for testing.

volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${CERT_PATH:-./data/ssl/harp/}:/certs
ports:
- "8780:8780"
- "8781:8781"
- "8782:8782"
environment:
- HP_SHARED_KEY=${HP_SHARED_KEY:-some_very_secure_password}
- NC_INSTANCE_URL=${HP_NC_INSTANCE_URL:-http://nextcloud.local}
- 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}

volumes:
data:
Expand Down
Loading