Git Product home page Git Product logo

Comments (4)

Jmennius avatar Jmennius commented on May 29, 2024

Hi @Kimamisa, can you please clarify what the "short" URL is?

SERVE_DOCS is not something that you usually want, it makes python serve documentation requests (not the nginx).
There is also a per-project visibility setting (project management UI), did you try it?

from docker-readthedocs.

Kimamisa avatar Kimamisa commented on May 29, 2024

Hi @Jmennius ,
yes, what they call short URL is the domain redirection per project.

Oh, I just saw that there is the nginx-vhost-template, but it is not filled when using the USE_SUBDOMAIN. Should we add a mechanism for that ?

from docker-readthedocs.

Jmennius avatar Jmennius commented on May 29, 2024

Yes, the nginx-vhost-template is what you need.
It is not seamless, right now you should enable it manually and patch the hostname inside.
This config might also be incomplete, so you would probably like to copy something like proxying options and timeouts from the main one.

If you would like to make it more straightforward - we'll need some script that is able to patch the config on startup with a correct hostname (and restart nginx then). rtd-provision.sh is probably the right place for such a script. If we could only make nginx config use environment variable...

BTW, the subdomain (hostname) is built into the docs in some places so you won't be able to switch subdomain options seamlessly since existing docs will need a rebuild (for all references to function correctly).

from docker-readthedocs.

Kimamisa avatar Kimamisa commented on May 29, 2024

thanks for your answer.

I think as a first step, we can add it to the documentation, to let other users know about it.

I'll try to dig further if I have more time.

Switching subdomains is not a problem, but having the first templating automated would ease the update of containers, as we won't have to automatically recreate the symlink !

from docker-readthedocs.

Related Issues (14)

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.