Skip to content

Commit

Permalink
url shortener
Browse files Browse the repository at this point in the history
  • Loading branch information
LegitCamper committed Oct 20, 2024
1 parent 53d70e4 commit 02a3807
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ volumes:
driver: local
adguard-work:
driver: local
shortener:
driver: local

media:
driver_opts:
Expand Down Expand Up @@ -406,3 +408,14 @@ services:
# expose:
# - :3000
# restart: always

smrs-shortener:
container_name: smrs-shortner
image: ghcr.io/igor47/smrs:v0.1.1
restart: always
networks:
- web
expose:
- 8000
volumes:
- shortener:/smrs/data:rw
10 changes: 10 additions & 0 deletions docker/traefik/dynamic.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ certResolver = "cloudflare"
[[http.services.komodo.loadBalancer.servers]]
url = "http://komodo-core:9120"

[http.routers.smrs]
service = "smrs"
rule = "Host(`smrs.sawyer.services`) || Host(`short.sawyer.services`)"
[http.routers.smrs.tls]
certResolver = "cloudflare"

[http.services.smrs.loadBalancer]
[[http.services.smrs.loadBalancer.servers]]
url = "http://smrs-shortener:8000"

[http.routers.ollama]
middlewares = ["auth"]
service = "ollama"
Expand Down

0 comments on commit 02a3807

Please sign in to comment.