Giter Site home page Giter Site logo

Comments (3)

use-strict avatar use-strict commented on August 29, 2024

You just pass it to docker run as an env variable:

docker run -p 80:80 -e APP_BASE_URL="https:\/\/my.domain.tld" alethio/ethereum-lite-explorer

I'm also getting some errors if I don't escape the slashes, so that's probably a bug which I'm going to investigate.

See also the examples here: https://github.com/Alethio/ethereum-lite-explorer#running-in-docker

from ethereum-lite-explorer.

gperezalba avatar gperezalba commented on August 29, 2024

Okey I understand now... as it says "It is used ONLY in index.html for og:tags" I misunderstood it and tried to change other og:tags like og:title.

Thanks @use-strict

from ethereum-lite-explorer.

use-strict avatar use-strict commented on August 29, 2024

Escaping issue will be fixed with #41

But is it the way if I want to change the og:title for example?

No, it's not. Env vars are there only for simple and very common customizations, like the node URL or the base URL. For more advanced customization, you can either mount a custom config.json or, if code changes are needed, you can build from source instead.

In the case of og:title, the string is the same as the application title, which is shown in the browser title bar. Because that is a localized string, it is taken from the src/translation/*.json files, which are packaged together with the source code and not configurable. In this case you could fork the repo and build from source, but it is an open discussion whether such customization should be supported OOTB.

from ethereum-lite-explorer.

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.