tobychui / zoraxy

A general purpose HTTP reverse proxy and forwarding tool. Now written in Go!
https://zoraxy.aroz.org
GNU Affero General Public License v3.0
2.89k stars 171 forks source link

[BUG] Templates not working? #346

Closed kromonos closed 3 hours ago

kromonos commented 4 hours ago

Describe the bug Upstream not reachable, but error page only 404

To Reproduce Download the templates and follow the instructions from README

Expected behavior Displaying the error pages from the templates folder Also found something on Reddit, but that seemed not to be the solution.

Screenshots image
image
image

Systemd service file:

[Unit]
Description=Zoraxy Reverse Proxy Server
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/zoraxy
ExecStart=/opt/zoraxy/start.sh
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=zoraxy

[Install]
WantedBy=multi-user.target

start.sh:

#!/bin/bash
export PDNS_API_URL='http://xxxxxxxxx/'
export PDNS_SERVER_NAME='localhost'
export PDNS_API_KEY='xxxxxxxx'
export PDNS_API_VERSION=1
/usr/local/bin/zoraxy/zoraxy -port=192.168.0.1:8000 -fastgeoip

image image

Browser (if it is a bug appears on the UI section of the system):

Host Environment (please complete the following information):

Additional context

EDIT blacklist.html and whitelist.html seem to work. Only the notfound.html seems to be unused?

kromonos commented 3 hours ago

OK, found my mistake. I downloaded the src/web folder and copied it to /opt/zoraxy/web. Then I have these fancy messages too: image

Maybe one should add this to the manual :)