Comments (4)
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.
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.
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.
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)
- docker-compose up fails HOT 4
- Build fails with python3 HOT 6
- Building the container on windows fails
- Wrong ownership of postgres data directory (windows) HOT 2
- Bad Gateway Error on first build HOT 1
- Update to ReadTheDocs 3.1
- Should we deprecate this repository ? HOT 1
- Could you update the readthedocs please HOT 1
- Elastic Search support HOT 4
- Database Starting too slowly? HOT 2
- Django login not working HOT 4
- Issues with Docker DNS + pip wheel install
- Not working out of the box? HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-readthedocs.