From e8e3fa12ca8d184beddbb5e66738f999f027b5c6 Mon Sep 17 00:00:00 2001 From: Damian Freeman Date: Fri, 21 Jul 2023 00:37:43 +0000 Subject: [PATCH 1/2] fix some html errors, and add new stuff --- Nginx/html/cs/404.html | 104 +++++++++++++++++++++++------ Nginx/html/cs/429.html | 112 ++++++++++++++++++++++++------- Nginx/html/cs/500.html | 121 ++++++++++++++++++++++++++------- Nginx/html/cs/502.html | 146 +++++++++++++++++++++++++++++----------- Nginx/html/cs/504.html | 147 ++++++++++++++++++++++++++++++----------- 5 files changed, 487 insertions(+), 143 deletions(-) diff --git a/Nginx/html/cs/404.html b/Nginx/html/cs/404.html index 1b92047..3f13295 100644 --- a/Nginx/html/cs/404.html +++ b/Nginx/html/cs/404.html @@ -1,25 +1,87 @@ - + + + + + Library of Code - - - -

404 NOT FOUND

-

The location you requested has not been found on this gateway.

-

User

-

If you're just visiting the site, here are the steps you can take.

-
    -
  1. You may have entered the wrong address, please check the URL and try again.
  2. -
  3. Check with the person who gave you the URL to ensure it's correct.
  4. -
-

Site Operator

-

If you're the operator of this site, here are the steps you can take.

-
    -
  1. This domain isn't registered with our systems. Please contact Engineering to bind this domain.
  2. -
  3. If none of these solved your issue, please contact the Department of Engineering at engineering@libraryofcode.org
  4. -
-
Library of Code sp-us
- -
GlobalSign nv-sa
+ + + + + +
+

404 NOT FOUND

+

The location you requested has not been found on this gateway.

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. + You may have entered the wrong address, please check the URL and try + again. +
  2. +
  3. + Check with the person who gave you the URL to ensure it's correct. +
  4. +
+

Site Operator

+

+ If you're the operator of this site, here are the steps you can take. +

+
    +
  1. + This domain isn't registered with our systems. Please contact + Engineering to bind this domain. +
  2. +
  3. + If none of these solved your issue, please contact the Department of + Engineering at engineering@libraryofcode.org +
  4. +
+
+
+ Library of Code sp-us +
+
+ + + + + + +
+ GlobalSign nv-sa + +
+ diff --git a/Nginx/html/cs/429.html b/Nginx/html/cs/429.html index 59582a5..d026df0 100644 --- a/Nginx/html/cs/429.html +++ b/Nginx/html/cs/429.html @@ -1,27 +1,93 @@ - + + + + + Library of Code - - - -

429 TOO MANY REQUESTS

-

You are sending too many requests, slow down.

-

User

-

If you're just visiting the site, here are the steps you can take.

-
    -
  1. Refrain from requesting the same resource or multiple resources on the same domain multiple times.
  2. -
  3. Try refreshing the page.
  4. -
  5. Try again in 5 minutes.
  6. -
-

Site Operator

-

If you're the operator of this site, here are the steps you can take.

-
    -
  1. CWG is receiving too many requests from your IP address to this upstream server link, slow down.
  2. -
  3. Make sure you're not requesting your domain multiple times in your frontend.
  4. -
  5. If none of these solved your issue, please contact the Department of Engineering at engineering@libraryofcode.org
  6. -
-
Library of Code sp-us
- -
GlobalSign nv-sa
+ + + + + +
+

429 TOO MANY REQUESTS

+

You are sending too many requests, slow down.

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. + Refrain from requesting the same resource or multiple resources on the + same domain multiple times. +
  2. +
  3. Try refreshing the page.
  4. +
  5. Try again in 5 minutes.
  6. +
+

Site Operator

+

+ If you're the operator of this site, here are the steps you can take. +

+
    +
  1. + CWG is receiving too many requests from your IP address to this + upstream server link, slow down. +
  2. +
  3. + Make sure you're not requesting your domain multiple times in your + frontend. +
  4. +
  5. + If none of these solved your issue, please contact the Department of + Engineering at engineering@libraryofcode.org +
  6. +
+
+
+ Library of Code sp-us +
+
+ + + + + + +
+ GlobalSign nv-sa + +
+ diff --git a/Nginx/html/cs/500.html b/Nginx/html/cs/500.html index e805cac..a2c21ef 100644 --- a/Nginx/html/cs/500.html +++ b/Nginx/html/cs/500.html @@ -1,8 +1,27 @@ - + + + + + Library of Code - + + + + + + +
+

500 Internal Server Error

+

Something went wrong while trying to process the request.

+

+ Click here to report this problem to the Department of + Engineering +

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. Try refreshing the page.
  2. +
  3. Try again in 5 minutes.
  4. +
+

Site Operator

+

+ If you're the operator of this site, here are the steps you can take. +

+
    +
  1. + An unknown error has occurred while attempting to process the request, + there may be an issue with the gateway itself. +
  2. +
  3. + Make sure there's no announcement, issue, or maintenance posts. If + there aren't, please contact us. +
  4. +
  5. + If none of these solved your issue, please contact the Department of + Engineering at engineering@libraryofcode.org +
  6. +
+
+
+ Library of Code sp-us +
+
+ + + + + + +
+ GlobalSign nv-sa + +
+ diff --git a/Nginx/html/cs/502.html b/Nginx/html/cs/502.html index edc489d..085ac2b 100644 --- a/Nginx/html/cs/502.html +++ b/Nginx/html/cs/502.html @@ -1,42 +1,114 @@ - + + + + + Library of Code - + + - - - -

502 Bad Gateway

-

We received an invalid response from the upstream server.

-

Click here to report this problem to the Department of Engineering

-

User

-

If you're just visiting the site, here are the steps you can take.

-
    -
  1. Try again in 5 minutes.
  2. -
  3. Contact the site owner for assistance.
  4. -
-

Site Operator

-

If you're the operator of this site, here are the steps you can take.

-
    -
  1. This code generally means our gateway received CONNECTION REFUSED while trying to communicate with your application, which means it's not listening on the port.
  2. -
  3. We could be listening on another port than the one you're using, make sure you're using the port given to you by Engineering.
  4. -
  5. If none of these solved your issue, please contact the Department of Engineering at engineering@libraryofcode.org
  6. -
-
Library of Code sp-us
- -
GlobalSign nv-sa
+ src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" + integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" + crossorigin="anonymous" + > + + + + + +
+

502 Bad Gateway

+

We received an invalid response from the upstream server.

+

+ Click here to report this problem to the Department of + Engineering +

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. Try again in 5 minutes.
  2. +
  3. Contact the site owner for assistance.
  4. +
+

Site Operator

+

+ If you're the operator of this site, here are the steps you can take. +

+
    +
  1. + This code generally means our gateway received + CONNECTION REFUSED while trying to communicate with your + application, which means it's not listening on the port. +
  2. +
  3. + We could be listening on another port than the one you're using, make + sure you're using the port given to you by Engineering. +
  4. +
  5. + If none of these solved your issue, please contact the Department of + Engineering at engineering@libraryofcode.org +
  6. +
+
+
+ Library of Code sp-us +
+
+ + + + + + +
+ GlobalSign nv-sa + +
+ diff --git a/Nginx/html/cs/504.html b/Nginx/html/cs/504.html index 9656a6d..7f70ed2 100644 --- a/Nginx/html/cs/504.html +++ b/Nginx/html/cs/504.html @@ -1,42 +1,115 @@ - + + + + + Library of Code - + + - - - -

504 Gateway Timeout

-

We couldn't contact the upstream server within a reasonable amount of time.

-

Click here to report this problem to the Department of Engineering

-

User

-

If you're just visiting the site, here are the steps you can take.

-
    -
  1. Try again in 5 minutes.
  2. -
  3. Contact the site owner for assistance.
  4. -
-

Site Operator

-

If you're the operator of this site, here are the steps you can take.

-
    -
  1. When 504 is thrown, this generally means the upstream application accepted the request, however it didn't respond within a reasonable amount of time. This may mean that there's an uncaught error in your application.
  2. -
  3. Check your server logs for errors.
  4. -
  5. If none of these solved your issue, please contact the Department of Engineering at engineering@libraryofcode.org
  6. -
-
Library of Code sp-us
- -
GlobalSign nv-sa
+ src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" + integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" + crossorigin="anonymous" + > + + + + + +
+

504 Gateway Timeout

+

+ We couldn't contact the upstream server within a reasonable amount of + time. +

+

+ Click here to report this problem to the Department of + Engineering +

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. Try again in 5 minutes.
  2. +
  3. Contact the site owner for assistance.
  4. +
+

Site Operator

+

+ If you're the operator of this site, here are the steps you can take. +

+
    +
  1. + When 504 is thrown, this generally means the upstream application + accepted the request, however it didn't respond within a reasonable + amount of time. This may mean that there's an uncaught error in your + application. +
  2. +
  3. Check your server logs for errors.
  4. +
  5. + If none of these solved your issue, please contact the Department of + Engineering at engineering@libraryofcode.org +
  6. +
+
+
+ Library of Code sp-us +
+
+ + + + + + +
+ GlobalSign nv-sa + +
+ -- 2.20.1 From bcecc504e8f03ef4ccacbe759e5d6ca402833a5d Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 14 Sep 2023 13:55:51 -0400 Subject: [PATCH 2/2] fix wiki addr resolving --- Nginx/Server Blocks/git.libraryofcode.org.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Nginx/Server Blocks/git.libraryofcode.org.conf diff --git a/Nginx/Server Blocks/git.libraryofcode.org.conf b/Nginx/Server Blocks/git.libraryofcode.org.conf new file mode 100644 index 0000000..ba45f70 --- /dev/null +++ b/Nginx/Server Blocks/git.libraryofcode.org.conf @@ -0,0 +1,12 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name git.libraryofcode.org; + + ssl_certificate /etc/nginx/ssl/org.chain.crt; + ssl_certificate_key /etc/nginx/ssl/org.key.pem; + + location / { + proxy_pass http://localhost:3056; + } +} -- 2.20.1