diff --git a/.drone.yml b/.drone.yml index 8945f3f..7975959 100644 --- a/.drone.yml +++ b/.drone.yml @@ -73,6 +73,26 @@ steps: event: - push +- name: deploy error pages + image: appleboy/drone-scp + settings: + tar_tmp_path: /tmp/ + host: adlin.nemunai.re + target: /var/www/nemunai.re/adlin/.error-pages/ + source: token-validator/htdocs/5*.html + strip_components: 2 + username: + from_secret: ssh_username + key: + from_secret: deploy_key + port: + from_secret: ssh_port + when: + branch: + - master + event: + - push + trigger: event: - push diff --git a/token-validator/htdocs/502-maatma.html b/token-validator/htdocs/502-maatma.html new file mode 100644 index 0000000..9362780 --- /dev/null +++ b/token-validator/htdocs/502-maatma.html @@ -0,0 +1,106 @@ + + +
+ ++ Maatma seems to have an issue and can't send the request correctly to its destination. +
++ Most probably: nothing. Try to ping @nemunaire on Matrix if he's not aware of the problem. +
++ Maatma is responding with this error page because we were not able to contact the host you want to access. +
++ First, check that your tunnel is up on the Maatma's tunnels page. +
+
+ If it's up, most probably there is no program configured to respond on the given port (check with ss -tln
), or your firewall is filtering the request (check with tcpdump
if you see the request and the answer).
+
+ Maatma is responding with this error page because the server takes too many time to respond. +
+
+ First, check that your tunnel is currently up on the Maatma's tunnels page, then try to ping
your gateway (adress on the tunnels page).
+
+ If it's up, most probably your firewall is filtering the request with a DROP
target and never answer that the port is closed. Or your server is overloaded and really takes too long to respond.
+