Skip to content
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

ORGANICE_WEBDAV_URL not getting inserted correctly #952

Open
AblatedSprocket opened this issue Apr 23, 2023 · 1 comment
Open

ORGANICE_WEBDAV_URL not getting inserted correctly #952

AblatedSprocket opened this issue Apr 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@AblatedSprocket
Copy link

Hello!

I'm self-hosting Organice in a docker container. When I run it and go to sign in via webdav, I see the URL field populated with "ORGANICE_WEBDAV_URL" instead of the value. Sample command to reproduce:

docker run -d --name organice -p 5000:5000 -e "ORGANICE_WEBDAV_URL=https://my.webdav.com" twohundredok/organice:latest

The same occurs if I save the URL in an environment file and mount it to /opt/organice:

docker run -d --name organice -p :5000:5000 -v $PWD/docker/organice/.env:/opt/organice/.env twohundredok/organice:latest

Contents of $PWD/docker/organice/.env:

ORGANICE_WEBDAV_URL=https://my.webdav.com

And the same also happens if I build the container from a Dockerfile setting the environment variable:

FROM twohundredok/organice:latest

ENV ORGANICE_WEBDAV_URL=https://my.webdav.com

Hoping there's something simple I'm missing, seems like there typically is.

Thank you!

@AblatedSprocket AblatedSprocket added the bug Something isn't working label Apr 23, 2023
@RobotDisco
Copy link

RobotDisco commented Jul 4, 2023

Attempting to use my minimal Javascript familiarity to debug this as it also happens for me; something is off with this line:

const [url, setUrl] = useState(process.env.REACT_APP_WEBDAV_URL);
, or how it is output in the build process.

Looking at the compiled javascript inside the "official" docker container I'm running ((docker.io/twohundredok/organice:latest), it looks like this code doesn't actually pull the value from the environment variable process, but somehow places the variable name in literally

File name: /opt/organice/serve/static/jsmain.31d20f59.chunk.js
r=Object(i.useState)("ORGANICE_WEBDAV_URL")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants