1
0
Fork 0
mirror of https://github.com/miawinter98/just-short-it.git synced 2024-11-21 15:59:55 +00:00
Just Short It (damnit)! The most KISS single-user URL shortener there is.
Go to file
2023-04-15 15:40:46 +02:00
Model Initial Commit 2023-04-15 15:40:46 +02:00
Pages Initial Commit 2023-04-15 15:40:46 +02:00
Properties Initial Commit 2023-04-15 15:40:46 +02:00
Service Initial Commit 2023-04-15 15:40:46 +02:00
wwwroot Initial Commit 2023-04-15 15:40:46 +02:00
.dockerignore Initial Commit 2023-04-15 15:40:46 +02:00
.gitattributes Initial Commit 2023-04-15 15:40:46 +02:00
.gitignore Initial Commit 2023-04-15 15:40:46 +02:00
appsettings.Development.json Initial Commit 2023-04-15 15:40:46 +02:00
appsettings.json Initial Commit 2023-04-15 15:40:46 +02:00
Dockerfile Initial Commit 2023-04-15 15:40:46 +02:00
JustShortIt.csproj Initial Commit 2023-04-15 15:40:46 +02:00
JustShortIt.sln Initial Commit 2023-04-15 15:40:46 +02:00
LICENSE Initial Commit 2023-04-15 15:40:46 +02:00
Program.cs Initial Commit 2023-04-15 15:40:46 +02:00
README.md Initial Commit 2023-04-15 15:40:46 +02:00

Just Short It (damnit)!

The most KISS single user URL shortener there is.

To simply run Just Short It in a container run:

docker run -e JSI_BaseUrl=<your-url> \
           -e JSI_Account__Username=<your-username> \
           -e JSI_Account__Password=<your-password> \
           <todo>

In Docker Compose:

version: '3.4'

services:
  just-short-it:
    container_name: JustShortIt
    image: <todo>
    environment:
      - "JSI_BaseUrl=<your-url>"
      - "JSI_Account__Username=<your-username>"
      - "JSI_Account__Password=<your-password>"

Redis

By default Just Short It saves all the redirects in a in-memory distributed Cache, which get's lost whenever the container restarts, so if you want to keep your redirects you wanna use a redis DB.

You can confiure the connection to redis using the environment variables JSI_Redis__ConnectionString and optional JSI_Redis__InstanceName (it's default is "JustShortIt").

If you want to run both with compose, the most simple setup looks like this:

version: '3.4'

services:
  just-short-it:
    container_name: JustShortIt
    image: <todo>
    environment:
      - "JSI_BaseUrl=<your-url>"
      - "JSI_Account__Username=<your-username>"
      - "JSI_Account__Password=<your-password>"
      - "JSI_Redis__ConnectionString=redis,password=<your-redis-password>"
  redis:
    container_name: Redis
    image: redis:alpine
    environment:
      - "REDIS_PASSWORD=<your-redis-password>"
    volumes:
      - redis:/data

volumes:
  redis:

There you go, now your urls survive a restart!

License and Attribution

Just Short It by Mia Winter is licensed under the MIT License.
Just Short It uses Bulma for styling, Bulma is licensed under the MIT License.

Copyright (c) 2023 Mia Winter