Skip to content

Commit

Permalink
rebrand to cygnet (launch!)
Browse files Browse the repository at this point in the history
  • Loading branch information
makinbacon21 committed Apr 29, 2024
1 parent dc1b3ef commit ba93bbe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# How to set up development server
# Cygnet

## How to set up development server

1. Build and Run Container
`docker compose -f docker-compose.debug.yml up --build`
Expand All @@ -9,7 +11,7 @@
As you edit project files, the page should update dynamically (no need to reload!).
ctrl+s multiple times to reset pool connection as needed.

# How to set up prod server
## How to set up prod server

(Ensure Traefik is set up)

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
restart: unless-stopped
environment:
NODE_ENV: production
DOMAIN: https://cygnetv2.sccs.swarthmore.edu
DOMAIN: https://cygnet.sccs.swarthmore.edu
env_file:
- .env
volumes:
Expand All @@ -26,7 +26,7 @@ services:
- 'traefik.enable=true'
- 'traefik.docker.network=traefik'
- 'traefik.http.routers.cygnet.entrypoints=https'
- 'traefik.http.routers.cygnet.rule=(Host(`cygnetv2.sccs.swarthmore.edu`) && !PathPrefix(`/iiif/`))'
- 'traefik.http.routers.cygnet.rule=(Host(`cygnet.sccs.swarthmore.edu`) && !PathPrefix(`/iiif/`))'
- 'traefik.http.routers.cygnet.tls=true'
- 'traefik.http.routers.cygnet.tls.certresolver=letsEncrypt'
- 'traefik.http.services.cygnet.loadbalancer.server.port=3000'
Expand All @@ -52,7 +52,7 @@ services:
- 'traefik.docker.network=traefik'
- 'traefik.port=80'
- 'traefik.http.routers.static.entrypoints=https'
- 'traefik.http.routers.static.rule=(Host(`cygnetv2.sccs.swarthmore.edu`) && PathPrefix(`/iiif/`))'
- 'traefik.http.routers.static.rule=(Host(`cygnet.sccs.swarthmore.edu`) && PathPrefix(`/iiif/`))'
- 'traefik.http.routers.static.tls=true'
- 'traefik.http.routers.static.tls.certresolver=letsEncrypt'
- 'traefik.http.services.static.loadbalancer.server.port=8182'
Expand Down
4 changes: 2 additions & 2 deletions lib/imgloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export default function cygImgLoader({ src, width, quality }: { src: string, width: string, quality: string }) {

if(src.includes("svg")) {
return `https://cygnetv2.sccs.swarthmore.edu${src}`;
return `https://cygnet.sccs.swarthmore.edu${src}`;
}

// IIIF spec--swap all but leading slash
Expand All @@ -12,5 +12,5 @@ export default function cygImgLoader({ src, width, quality }: { src: string, wid
// a stupid API.
src = src.replaceAll(/(?!^)\//g, "$");

return `https://cygnetv2.sccs.swarthmore.edu/iiif/3${src}/square/^${width},/0/default.jpg`;
return `https://cygnet.sccs.swarthmore.edu/iiif/3${src}/square/^${width},/0/default.jpg`;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cygnet",
"version": "0.1.0",
"version": "2.0.0",
"private": true,
"scripts": {
"dev": "npx next dev",
Expand Down

0 comments on commit ba93bbe

Please sign in to comment.