techno-tim / littlelink-server

A lightweight, open source, stateless, and self-hosted alternative to linktree in a Docker container!
https://links.technotim.live
MIT License
901 stars 164 forks source link

Improvements/Suggestions #39

Closed jerrywoo96 closed 2 years ago

jerrywoo96 commented 3 years ago

Hello!

Thanks for the wonderful docker app!

Can we seperate the Environment variables to a seperate file? Currently it clutters up the docker-compose file with settings not really related to server configuration. It also does not make any sense if you plan to add more supported services.

Also can we have the option to rearrange the links? And to add custom links as well for advanced users as well?

i could propose a yml configuration file something like this (ps: github doesnt support uploading of yml files.):

sample.yml.txt

timothystewart6 commented 3 years ago

Hey, thanks for the suggestions. These are related to the server configuration since it is server side rendered and needs to modify the output. Unfortunately I do not plan on changing the API in a breaking way any time soon unless there is a good reason to. There's also a lot of mapping that would also have to change. Sorting links is already planned https://github.com/techno-tim/littlelink-server/issues/2

jerrywoo96 commented 3 years ago

Okay, although you might say it relates to server configuration, i would think of it as content management of the website. I was referring to more docker related settings like port, timezone, password, etc, in the docker-compose file than website links content management. Using a seperate file for links can allow the expandability to add custom links. :) It could also be a json file where it is possible for the website to read from :)

Choubakawa commented 3 years ago

You can put the environment variables in a separate file with

env_file:
      - variables.env
timothystewart6 commented 2 years ago

Addressed some of this in comments, a workaround was provided to use an env file. Other request open is #2 Thank you!