diff --git a/frontend/.env.dist b/frontend/.env.dist index 7815be556..ffe4869fa 100644 --- a/frontend/.env.dist +++ b/frontend/.env.dist @@ -1,2 +1,3 @@ LOGIN_API_URL=http://localhost/login_api/ -COMMUNITY_API_URL=http://localhost/api/ \ No newline at end of file +COMMUNITY_API_URL=http://localhost/api/ +ALLOW_REGISTER=true \ No newline at end of file diff --git a/frontend/Dockerfile b/frontend/Dockerfile index f09ce0e5c..5ec90fe81 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -16,8 +16,6 @@ ENV BUILD_COMMIT="0000000" ENV NODE_ENV="production" ## App relevant Envs ENV PORT="3000" -## Register in App true || false -ENV ALLOW_REGISTER="true" # Labels LABEL org.label-schema.build-date="${BUILD_DATE}" diff --git a/frontend/src/config/index.js b/frontend/src/config/index.js index a801debb7..fa4bf388b 100644 --- a/frontend/src/config/index.js +++ b/frontend/src/config/index.js @@ -6,7 +6,7 @@ const environment = { NODE_ENV: process.env.NODE_ENV, DEBUG: process.env.NODE_ENV !== 'production' || false, PRODUCTION: process.env.NODE_ENV === 'production' || false, - ALLOW_REGISTER: process.env.ALLOW_REGISTER === 'true', + ALLOW_REGISTER: process.env.ALLOW_REGISTER !== 'false', } const server = {