23 Aug 2021 |
gwenprime | * hi all, is there a way to search for all notes which have two specific tags? IE I want to find any note that had both tag A and tag B It seems that the default is searching for tag A or tag B | 18:53:44 |
Erik [🦔-dev] | I'm sorry currently there is no such function. We track the feature request in https://github.com/hedgedoc/react-client/issues/1382. | 19:50:21 |
Erik [🦔-dev] | * I'm sorry currently there is no such function.
We track the feature request in https://github.com/hedgedoc/react-client/issues/1382 | 19:50:50 |
gwenprime | In reply to @erik:michelson.eu I'm sorry currently there is no such function. We track the feature request in https://github.com/hedgedoc/react-client/issues/1382 ah ok! no worries, I was just wondering if it was something i missed | 19:53:39 |
gwenprime | thank you for the answer 🙂 | 19:53:48 |
| Andrew joined the room. | 22:39:34 |
Andrew | I cannot get Keycloak Oauth to work with a fresh HedgeDoc installation. I followed this guide for configuration: https://docs.hedgedoc.org/guides/auth/keycloak/ | 22:55:16 |
Andrew | I have CodiMD working with this Keycloak server. The symptom is that authentication succeeds but the page that loads is still the initial HedgeDoc page with the Log in button. The JavaScript console shows no errors | 22:56:39 |
Sheogorath | Andrew: https://docs.hedgedoc.org/guides/reverse-proxy/#reverse-proxy-config <-- check that you have the X-forward headers set, especially the protocol one | 22:57:20 |
Andrew | Ah, I don't think I'm doing that. It's behind Traefik. | 22:57:56 |
Andrew | Speaking of which, I actually have a separate nginx server deployed to reverse proxy my base path. I wonder if it's easier to apply that config to this server or if I have to apply it to Traefik? | 22:59:28 |
Erik [🦔-dev] | So you're running HedgeDoc from a sub-path of your domain? | 23:00:00 |
Andrew | That's right | 23:00:27 |
Sheogorath | Traefik should be fine. (this is the config I used until yesterday: https://git.shivering-isles.com/shivering-isles/infrastructure/-/blob/cace679f49ea812237aa2f87e0b8a98169bd9532/roles/hedgedoc/templates/docker-compose.yml#L76-87) | 23:00:29 |
Sheogorath | So your setup looks like this? traefik -> nginx -> hedgedoc? or traefik -> hedgedoc? | 23:01:16 |
Erik [🦔-dev] | In reply to @andrew:matrix.reticu.li That's right In that case you might want to set the CMD_URL_PATH environment variable (or the corresponding config.json property). https://docs.hedgedoc.org/configuration/#hedgedoc-location | 23:01:36 |
Andrew | traefik -> nginx -> hedgedoc
But I could simplify that with Traefik CRDs. This is on Kubernetes | 23:02:10 |
Erik [🦔-dev] | You're not using OKD by coincidence? | 23:02:50 |
Sheogorath | Na, then he wouldn't use traefik I guess :D | 23:03:54 |
Andrew | No, don't think so. I don't know what that is. | 23:04:04 |
Andrew | https://gitlab.com/nsf-muses/kubernetes/-/blob/61b07f4f41a6ca46096271c2d28a174ad9bb48e6/charts/hedgedoc/templates/deployment.yaml | 23:04:09 |
Andrew | There's my config | 23:04:14 |
Sheogorath | https://git.shivering-isles.com/hedgedoc/helm-v2 leaves that here :D It's too new to be actually pushed more official, but if you are interested in collaboration, that would be great thing :D | 23:05:42 |
Andrew | Kudos on the Matrix room by the way. I'm creating web services for a new science collaboration and I deployed a Matrix server, mostly to evangelize the protocol 😃 | 23:05:45 |
Sheogorath | In reply to @andrew:matrix.reticu.li
traefik -> nginx -> hedgedoc
But I could simplify that with Traefik CRDs. This is on Kubernetes Back to your problem: I would say your problem comes from nginx not forwarding these headers. Have you configured upstream trust? | 23:06:28 |
Andrew | I do not believe I have, because I don't know what upstream trust is... | 23:08:15 |
Sheogorath | In reply to @andrew:matrix.reticu.li I do not believe I have, because I don't know what upstream trust is... https://www.loadbalancer.org/blog/nginx-and-x-forwarded-for-header/ <-- basically telling nginx from which IP (yes, very kubernetes like 😓) nginx will accept something like X-forward headers as real | 23:10:15 |
Sheogorath | you could probably make your life a lot easier, if you get the nginx out of that setup :D | 23:11:49 |
Andrew | I believe for Traefik I'll want to use this Middlewares | 23:12:04 |
Sheogorath | Traefik sets the needed headers automatically AFAIK. But nginx won't forward them unless you explicitly tell it to, since they have implications. | 23:12:45 |