Comments (6)
I just tested it on my private setup, which is also using keycloak + oauth. worked fine with both base images. Could you share your config?
from container.
Our instance runs in Kubernetes and was migrated from hackmdio/hackmd:2.0.0. All configuration is done via env variables. The Keycloak Config appears to match https://docs.hedgedoc.org/guides/auth/keycloak/. Both HedgeDoc and Keycloak are behind a nginx reverse proxy ingress controller.
apiVersion: apps/v1
kind: Deployment
metadata:
name: codimd
namespace: codimd
labels:
app: codimd
spec:
replicas: 1
selector:
matchLabels:
app: codimd
template:
metadata:
labels:
app: codimd
spec:
containers:
- name: codimd
image: quay.io/hedgedoc/hedgedoc:1.7.1-debian
imagePullPolicy: Always
env:
- name: "CMD_DB_URL"
valueFrom:
secretKeyRef:
name: codimd-cfg
key: pg_cstr
- name: "CMD_DOMAIN"
value: "codimd.<redacted>"
- name: "CMD_USECDN"
value: "false"
- name: "CMD_PROTOCOL_USESSL"
value: "true"
- name: "CMD_EMAIL"
value: "true"
- name: "CMD_URL_ADDPORT"
value: "false"
- name: "CMD_ALLOW_EMAIL_REGISTER"
value: "false"
- name: "CMD_ALLOW_ANONYMOUS"
value: "true"
- name: "CMD_ALLOW_ANONYMOUS_EDITS"
value: "false"
- name: "CMD_OAUTH2_USER_PROFILE_URL"
value: "https://keycloak.<redacted>/auth/realms/<redacted>/protocol/openid-connect/userinfo"
- name: "CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR"
value: "preferred_username"
- name: "CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR"
value: "name"
- name: "CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR"
value: "email"
- name: "CMD_OAUTH2_TOKEN_URL"
value: "https://keycloak.<redacted>/auth/realms/<redacted>/protocol/openid-connect/token"
- name: "CMD_OAUTH2_AUTHORIZATION_URL"
value: "https://keycloak.<redacted>/auth/realms/<redacted>/protocol/openid-connect/auth"
- name: "CMD_OAUTH2_CLIENT_ID"
value: "codimd"
- name: "CMD_OAUTH2_CLIENT_SECRET"
value: "<redacted>"
- name: "CMD_OAUTH2_PROVIDERNAME"
value: "Keycloak"
- name: "CMD_SESSION_SECRET"
value: "<redacted>"
ports:
- name: http-codimd
containerPort: 3000
volumeMounts:
- name: uploads
mountPath: /home/hackmd/app/public/uploads
volumes:
- name: uploads
hostPath:
path: /srv/codimd/codimd
from container.
I'll look into those details later and try to reproduce. But for now, please check the volume mount! This is not where uploads on the hedgedoc image are stored!
from container.
Thanks, I totally missed that. Fixed it.
from container.
I am facing the same issue.
@kjkriegel Did you manage to fix it it?
from container.
This issue had no activity for quite some time. I guess the problem was resolved in the meantime. If it persists with current docker images, feel free to re-open.
from container.
Related Issues (20)
- Add mandatory environment variables to docker compose file
- Dependency Dashboard
- future of docker deployment HOT 2
- Postgres upgrade instructions missing HOT 3
- problem with 1.9.1 image HOT 1
- git not found HOT 1
- MariaDB sample not working with MariaDB 10.6 HOT 19
- Database cannot be reached. Try 1 of 30 HOT 14
- Updating MariaDB to utf8mb4 character set failed
- exec /usr/local/bin/docker-entrypoint.sh: no such file or directory
- Old containers removal prevents pinning HOT 4
- Add OCI annotations to images HOT 4
- BuildKit/buildx required for building docker images (with ansible) HOT 8
- Use of FQIN in Dockerfile FROM instructions HOT 2
- Can't Login After CodiMd Upgrade HOT 1
- oAuth2 not working HOT 7
- Consider hardcoding GID alongside UID for image user?
- npm permission error HOT 2
- Improve Container size HOT 3
- database connection error - permission denied for user hedgedoc HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from container.