Skip to content
Snippets Groups Projects
Commit 5f8d84fd authored by Falk Rehse's avatar Falk Rehse Committed by Luca
Browse files

Switch to Kurzlink

Use the new Kurzlink generator
parent 4661d864
No related branches found
No related tags found
No related merge requests found
--- ---
image: image:
registry.gitlab.fachschaften.org/tudo-fsinfo/admin/gitlab-pages-shortlinks:latest name: registry.gitlab.fachschaften.org/evysgarden/kurzlink:latest
entrypoint: ["/bin/sh", "-c"]
variables:
IGNORE_URLS:
https://gitlab.fachschaften.org/tudo-fsinfo/fsr/sitzungen/tree/master/Protokolle
https://gitlab.fachschaften.org/tudo-fsinfo/fsr/sitzungen/merge_requests
https://tu-dortmund.zoom.us/j/97881519122?pwd=UG1vRThSeThjZm14YVRoamNiSG5NUT09
https://www.instagram.com/fsinfo.tudo/
test: test:
script: script:
- shortlinks generate -c vanitymap.txt - kurzlink --config kurzlinks.yaml --generate --vanitymap public/vanitymap.json --output public
only: only:
- merge_requests - merge_requests
...@@ -19,7 +13,7 @@ pages: ...@@ -19,7 +13,7 @@ pages:
script: script:
- apk add nodejs yarn bash - apk add nodejs yarn bash
- ./prepare-web-dependencies.sh - ./prepare-web-dependencies.sh
- shortlinks generate vanitymap.txt - kurzlink --config kurzlinks.yaml --generate --nocheck --vanitymap public/vanitymap.json --output public
artifacts: artifacts:
expire_in: 1h expire_in: 1h
paths: paths:
......
# oh14.de Kurzlinks # oh14.de Kurzlinks
Einträge der Form
```
/foo https://irgende.in/link
```
werden nach dem Deployment unter https://oh14.de/foo verfügbar sein und zu
https://irgende.in/link weitergeleitet. Interne Aliase sind auch mit folgender
Syntax möglich:
```
/bar /foo
```
Unter https://oh14.de/vanitymap.json gibt es alle Kurzlinks und ihre Ziele als JSON-Datei. Unter https://oh14.de/vanitymap.json gibt es alle Kurzlinks und ihre Ziele als JSON-Datei.
## Duplikate erkennen
Duplikate kann man wie folgt erkennen:
```shell
cat vanitymap.txt | awk '{ print $1 }' | sort | uniq -c | sort
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment