Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

URL Shortener Service using flask,fastapi,redis

License

NotificationsYou must be signed in to change notification settings

alivx/urless

Repository files navigation

logo

![Docker Image CI](https://github.com/alivx/urless/workflows/Docker%20Image%20CI/badge.svg)# URLess

URL ShortenerAPI Service

self-hostable open-source URL shortening web API service with a Fast API. It allows you to host your own URL shorten easy to use.

Screenshots

sample1

Quickstart

Urless is written in Python, using Redis as its primary database.( TODO redisgears + mysql)

Installation

Download the latest version of URLess via this image 'alivx/urless'.

docker-compose build#To build projectdocker-compose up#To run project, You can use `-d` option to run it in the background.

To test service run CURL command:

curl --location --request POST'http://127.0.0.1:8000/' \--header'Content-Type: application/json' \--data-raw'{"url":"www.google.com"}'

ORfrom browser openlocalhost and start testing the system.

Configs

To Deal with config for each app, you have two method.

  1. settings.yaml
  2. enviromnet varables. (This will override settings.yaml value)

In point 2, just useDYNACONF_[valueName], for example, in our API there is a config calledexposePort, to override it use this valueDYNACONF_exposePort. such asexport DYNACONF_exposePort=1991

If you want to use a custom config under docker-compose, just add it underenvironment section as explained above.

docker-compose-env-vars

You can change value for each service config under filesettings.yaml

frontend-config

For nginx, you must change the config file underinfrastructure/nginx/urless.conf if you changesfrontend container name or port.

nginx


You can check the API documntion by/docsAPiDocs


[8]ページ先頭

©2009-2025 Movatter.jp