Giter VIP home page Giter VIP logo

Comments (8)

Bubka avatar Bubka commented on June 2, 2024 1

Hi,

Could be a cache issue. Run php artisan config:clear in a terminal (or delete the content of /2fauth/storage/framework/cache/)

from 2fauth.

Bubka avatar Bubka commented on June 2, 2024 1

It seems that env vars set in the docker-compose file directly are evaluate lately. You should consider using a docker.env file, see https://stackoverflow.com/questions/33107164/docker-compose-not-setting-environment-variables

from 2fauth.

Bubka avatar Bubka commented on June 2, 2024 1

Damn, I just realized that changing APP_NAME won't change anything, the string Welcome to 2FAuth is hard-coded in the translation files 😄

I will make the necessary change 👍🏻

from 2fauth.

Bubka avatar Bubka commented on June 2, 2024 1

Hi,
Finally I've decided to not make any change. The word '2FAuth' appears in many places throughout app, not all occurrences can be overridden because some sentences would be less relevant. I don't want the UI to be inconsistent or the 2FAuth name to be totally removed.

from 2fauth.

sabirovrinat85 avatar sabirovrinat85 commented on June 2, 2024

php artisan config:clear

yelds that cache cleared successfully, then I stopped container, cleared my browser cache once again, started container, yet new APP_NAME didn't apply :)

from 2fauth.

Bubka avatar Bubka commented on June 2, 2024

How do you set the APP_NAME var? In the docker-compose file or via a -e option when you start the container?

from 2fauth.

sabirovrinat85 avatar sabirovrinat85 commented on June 2, 2024

by docker-compose, like this

...............................................
`version: "3"

services:

2fauth:
image: 2fauth/2fauth
restart: unless-stopped
container_name: 2fauth
volumes:
- 2fauth:/2fauth
ports:
- 19080:8000/tcp
environment:
- APP_NAME=2FactorPassword
- APP_ENV=local
- APP_DEBUG=false`
........................................

from 2fauth.

sabirovrinat85 avatar sabirovrinat85 commented on June 2, 2024

I'm using Portainer UI for managing Docker, put docker.env with the variable in a folder where Portainer created docker-compose.yml for 2FAuth, then added

env_file: docker.env

in docker compose definition

then again

php artisan config:clear

and updating stack (which means stop, rereading docker compose, start again)

but no effect..

Now I'll leave it as it is, don't wanna mess much outside portainer just for some minor correction :)

Thank you much for the help and especially for the app itself, it's awesome!

from 2fauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.