From a353eda89aa68e5ee5b6af2a97eb17806e5fbe70 Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 20 Mar 2025 18:51:21 -0400 Subject: [PATCH] redirects for edu and canvas for .org --- .../canvas.libraryofcode.org.conf | 5 ++ Nginx/html/canvas-login-discovery.html | 76 +++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 Nginx/html/canvas-login-discovery.html diff --git a/Nginx/Server Blocks/canvas.libraryofcode.org.conf b/Nginx/Server Blocks/canvas.libraryofcode.org.conf index 516b19c..da3e599 100644 --- a/Nginx/Server Blocks/canvas.libraryofcode.org.conf +++ b/Nginx/Server Blocks/canvas.libraryofcode.org.conf @@ -22,6 +22,11 @@ server { client_max_body_size 50M; + # Serve the static login discovery page at /login-discovery + location = /login-discovery { + default_type text/html; + alias /var/www/html/canvas-login-discovery.html; + } location / { try_files $uri @app; diff --git a/Nginx/html/canvas-login-discovery.html b/Nginx/html/canvas-login-discovery.html new file mode 100644 index 0000000..167ccff --- /dev/null +++ b/Nginx/html/canvas-login-discovery.html @@ -0,0 +1,76 @@ + + + + + + Login to Canvas + + + +
+ + Canvas Image + +

Login to Canvas

+

Staff should use Enterprise Login.

+ + +
+ + +