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 :: Bad Gateway + + + + +
+
+

+ Error 502 +

+
+ + UTC +
+
+

+ Bad Gateway +

+
+
+
+
+
+
+
+ +
+ +
+

+ Browser
+ + Working + +

+
+
+
+ +
+
+
+
+
+ +
+ +
+

+ Maatma
+ + Error + +

+
+
+
+ +
+
+
+
+
+ +
+ +
+

+
+ +
+ + Unknown + +

+
+
+
+
+ +
+
+
+

What happened?

+

+ Maatma seems to have an issue and can't send the request correctly to its destination. +

+
+
+

It's my host, what can I do?

+

+ Most probably: nothing. Try to ping @nemunaire on Matrix if he's not aware of the problem. +

+
+
+
+ + diff --git a/token-validator/htdocs/502.html b/token-validator/htdocs/502.html new file mode 100644 index 0000000..2ec68f3 --- /dev/null +++ b/token-validator/htdocs/502.html @@ -0,0 +1,109 @@ + + + + + Maatma :: Bad Gateway + + + + +
+
+

+ Error 502 +

+
+ + UTC +
+
+

+ Bad Gateway +

+
+
+
+
+
+
+
+ +
+ +
+

+ Browser
+ + Working + +

+
+
+
+ +
+
+
+
+
+ +
+ +
+

+ Maatma
+ + Working + +

+
+
+
+ +
+
+
+
+
+ +
+ +
+

+
+ +
+ + Error + +

+
+
+
+
+ +
+
+
+

What happened?

+

+ Maatma is responding with this error page because we were not able to contact the host you want to access. +

+
+
+

It's my host, what can I do?

+

+ 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). +

+
+
+
+ + diff --git a/token-validator/htdocs/504.html b/token-validator/htdocs/504.html new file mode 100644 index 0000000..5cd8419 --- /dev/null +++ b/token-validator/htdocs/504.html @@ -0,0 +1,109 @@ + + + + + Maatma :: Gateway Timeout + + + + +
+
+

+ Error 504 +

+
+ + UTC +
+
+

+ Gateway Timeout +

+
+
+
+
+
+
+
+ +
+ +
+

+ Browser
+ + Working + +

+
+
+
+ +
+
+
+
+
+ +
+ +
+

+ Maatma
+ + Working + +

+
+
+
+ +
+
+
+
+
+ +
+ +
+

+
+ +
+ + Timeout + +

+
+
+
+
+ +
+
+
+

What happened?

+

+ Maatma is responding with this error page because the server takes too many time to respond. +

+
+
+

It's my host, what can I do?

+

+ 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. +

+
+
+
+ +