diff --git a/.env.example b/.env.example index 0491eef..d1f3462 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ PROXY=http://nathanwoodburn:5000/ TLD=woodburn RESTRICTED=["admin"] -REPLACE=["https://nathan.woodburn.au/"] \ No newline at end of file +REPLACE=["nathan.woodburn.au"] \ No newline at end of file diff --git a/main.py b/main.py index 23dc15f..2158f8f 100644 --- a/main.py +++ b/main.py @@ -119,9 +119,9 @@ def catch_all(path): # If content type is html if 'text/html' in res.headers['Content-Type']: content = res.content.decode('utf-8') - content = content.replace(URL, request.host_url) + content = content.replace(URL, request.host) for i in REPLACEMENT: - content = content.replace(i, request.host_url) + content = content.replace(i, request.host) response = make_response(content, res.status_code, headers) return response