mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
base_url configuration setting, closes #394
* base_url configuration setting * base_url works for static assets as well
This commit is contained in:
parent
2a36dfa2a8
commit
7656fd64d8
15 changed files with 104 additions and 28 deletions
|
|
@ -228,3 +228,16 @@ Some examples:
|
|||
* https://latest.datasette.io/?_context=1
|
||||
* https://latest.datasette.io/fixtures?_context=1
|
||||
* https://latest.datasette.io/fixtures/roadside_attractions?_context=1
|
||||
|
||||
.. _config_base_url:
|
||||
|
||||
base_url
|
||||
--------
|
||||
|
||||
If you are running Datasette behind a proxy, it may be useful to change the root URL used for the Datasette instance.
|
||||
|
||||
For example, if you are sending traffic from `https://www.example.com/tools/datasette/` through to a proxied Datasette instance you may wish Datasette to use `/tools/datasette/` as its root URL.
|
||||
|
||||
You can do that like so::
|
||||
|
||||
datasette mydatabase.db --config base_url:/tools/datasette/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue