-
Notifications
You must be signed in to change notification settings - Fork 93
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
Conversation
Signed-off-by: Anupam Kumar <[email protected]>
ea70855 to
bee1ce6
Compare
docker-compose.yml
Outdated
| environment: | ||
| - NC_HARP_SHARED_KEY=${NC_HAPROXY_SHARED_KEY:-some_very_secure_password} | ||
| - NC_INSTANCE_URL=${NC_INSTANCE_URL:-http://nextcloud.local} | ||
| - HP_FRP_DISABLE_TLS=${HP_FRP_DISABLE_TLS:-true} |
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.
do not needed, better to check without this flag set to True. by default we will use auto generated TLS
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.
Maybe we can reuse the PROTOCOL env variable that is used to indicate if the setup uses TLS or not in general
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.
those value is related to the communication type between HaRP and ExApp only.
we will describe this in the documentation when will work on it.
by default we will always recomend to not disable it.
docker-compose.yml
Outdated
| - /var/run/docker.sock:/var/run/docker.sock | ||
| environment: | ||
| - NC_HARP_SHARED_KEY=${NC_HAPROXY_SHARED_KEY:-some_very_secure_password} | ||
| - NC_INSTANCE_URL=${NC_INSTANCE_URL:-http://nextcloud.local} |
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.
We should call that something like NC_HARP_INSTANCE_URL, the rest of the setup is usually not pinned to a single nextcloud instance.
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.
Out of interest: Is there a way to use one harp server for multiple nextcloud servers?
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.
Out of interest: Is there a way to use one harp server for multiple nextcloud servers?
unfortunately, at the moment - definitely not
| @@ -0,0 +1,8 @@ | |||
| location / { | |||
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.
Doesn't this need to go in a file jsut called nextcloud.local https://github.com/nginx-proxy/nginx-proxy/tree/main/docs#per-virtual_host or is it possible to have multiple?
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.
yeah that didn't seem to work
we used this: https://github.com/nginx-proxy/nginx-proxy/tree/main/docs#overriding-location-blocks but the location / was also removed from the main config
maybe _location would allow to add just additional locations, will test
Signed-off-by: Anupam Kumar <[email protected]>
Signed-off-by: Anupam Kumar <[email protected]>
Signed-off-by: Anupam Kumar <[email protected]>
docker-compose.yml
Outdated
| container_name: nextcloud-appapi-harp | ||
| network_mode: ${HP_NETWORK_MODE:-master_default} |
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.
I'm curious about those parts, why do we need to set the network mode here actually?
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.
One can work with different kinds of configurations like host or any other network, for testing.
Signed-off-by: Anupam Kumar <[email protected]>
Signed-off-by: Anupam Kumar <[email protected]>
|
container_name seems necessary for dns setting so the proxy _location addition can connect to it "DNSNames": [
"master-appapi-harp-1",
"2b4545c5162e"
] |
No description provided.