diff --git a/nginx.conf b/nginx.conf index c775a44dd..6cf342600 100644 --- a/nginx.conf +++ b/nginx.conf @@ -34,7 +34,7 @@ http { #443(https) listen 443 ssl; - # ssl certificate + # ssl certificate ssl_certificate sce_sjsu_edu_cert.cer; ssl_certificate_key sce.key; # TLS protocol (remember to update to the newest protocols for best security) @@ -62,7 +62,7 @@ http { location ~ ^/recipe { return 302 $scheme://$http_host/recipe/; } - + location ~ ^/transit/ { resolver 127.0.0.11 valid=15s; @@ -71,12 +71,17 @@ http { proxy_pass $upstream; rewrite ^/transit(.*)$ $1 break; - } + } location ~ ^/transit$ { return 302 $scheme://$http_host/transit/; } + location ~ ^/spartan-compass(/.*)? { + proxy_set_header Host $http_host; + proxy_pass http://compass-app:3000; + } + #Load balancer location /api { proxy_pass http://mainendpoints; diff --git a/src/Components/Navbar/UserNavbar.js b/src/Components/Navbar/UserNavbar.js index 54230717e..89af3baa8 100644 --- a/src/Components/Navbar/UserNavbar.js +++ b/src/Components/Navbar/UserNavbar.js @@ -9,6 +9,7 @@ export default function UserNavBar(props) { const unauthedRoutes = [ { title: 'About', route: '/about' }, { title: 'Projects', route: '/projects' }, + { title: 'Spartan Compass', route: '/spartan-compass' } ]; diff --git a/src/Pages/Projects/Projects.js b/src/Pages/Projects/Projects.js index 68846c38a..03141c740 100644 --- a/src/Pages/Projects/Projects.js +++ b/src/Pages/Projects/Projects.js @@ -2,6 +2,14 @@ import React from 'react'; import ProjectCard from './Components/ProjectCard'; const projects = [ + { + 'link': 'https://github.com/SCE-Development/spartan-compass', + 'image': 'https://i.postimg.cc/c4F1T49f/temp-Image-Ry-Gq-U4.avif', + 'name': 'Spartan Compass', 'subnote': 'Rate My Professor+', + 'information': 'Full Stack', + 'caption': 'Spartan Compass is a web application that allows students to review professors based off their courses. It is built with React, Next.js, and Drizzle ORM. It also uses python for the webscraping of Rate My Professor.' + }, + { 'link': 'https://github.com/SCE-Development/Clark', 'image': 'https://user-images.githubusercontent.com/59713070/235862105-9606e862-e27e-40d4-8991-de1793c48dd0.png',