https://github.com/nekmo/selfhosted-docs
https://github.com/nekmo/selfhosted-docs
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nekmo/selfhosted-docs
- Owner: Nekmo
- Created: 2018-01-27T03:37:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-14T00:59:13.000Z (about 3 years ago)
- Last Synced: 2025-02-06T07:13:40.803Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Self Hosted Docs
################
.. code-block:: text/x-nginx-conf
server {
listen 80;
server_name your.docs.domain;
charset utf-8;
include gzip.conf;
# alias favicon.* to static
location ~ ^/favicon.(\w*)$ {
include static_limit;
alias /path/to/your/favicon.$1;
}
# Finally, send all non-media requests to the Django server.
location = / {
alias /srv/http/docs/;
}
location ~* /([^/]+)/(.*) {
alias /srv/http/docs/$1/docs/_build/html/$2;
}
}