From ba93bbe4a9069889d8cab2e433ba1b0e7703afe7 Mon Sep 17 00:00:00 2001 From: Thomas Makin Date: Sun, 28 Apr 2024 19:13:41 -0400 Subject: [PATCH] rebrand to cygnet (launch!) --- README.md | 6 ++++-- docker-compose.yml | 6 +++--- lib/imgloader.ts | 4 ++-- package.json | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4a83a30..2a0d8e6 100644 --- a/README.md +++ b/README.md @@ -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` @@ -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) diff --git a/docker-compose.yml b/docker-compose.yml index 17fa28e..55c01aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: @@ -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' @@ -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' diff --git a/lib/imgloader.ts b/lib/imgloader.ts index cd8fde3..2193881 100644 --- a/lib/imgloader.ts +++ b/lib/imgloader.ts @@ -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 @@ -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`; } diff --git a/package.json b/package.json index 37709ac..1bc783a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cygnet", - "version": "0.1.0", + "version": "2.0.0", "private": true, "scripts": { "dev": "npx next dev",