Compare commits

..

No commits in common. "e2028bbe4894ad6313c95241e3c1334b54f6153b" and "f61a6c42c554a3c387d9c65ce56beedb3ca4195e" have entirely different histories.

2 changed files with 5 additions and 9 deletions

View File

@ -28,7 +28,7 @@ HRSS is an application that allows you to transform any website into a RSS feed.
[Because we all love demos.](https://hrss.hipstercat.fr)
# Installation (native)
# Installation
1. Make sure you have Python3 installed and virtualenv.
2. Clone this repo for unstable branch, or download [latest release](https://hipstercat.fr/gogs/hipstercat/hrss/releases).
@ -37,6 +37,3 @@ HRSS is an application that allows you to transform any website into a RSS feed.
5. `python3 manage.py migrate` to apply latest DB migrations (and create the H2 database file).
6. `python3 manage.py runserver` to run the integrated webserver (not suitable for production use - even though you should not use HRSS in a production environnement at all until it is considered stable anyway). Use uWSGI to run it in a production environnement.
# Installation (Docker)
Use https://github.com/kmlucy/docker-hrss nicely made by [kmlucy](https://github.com/kmlucy).

View File

@ -7,10 +7,9 @@ def BASE_URL(request):
else:
scheme = 'http://'
fullhost = request.get_host()
host = fullhost.split(":")[0]
port = request.get_port()
port = fullhost.split(":")[1]
if port == 80 or port == 443:
base = host
base = fullhost.split(":")[0]
else:
base = host+":"+port
base = fullhost
return {'BASE_URL': scheme + base, }