lusingander / stu

TUI explorer application for Amazon S3 (AWS S3) 🪣
https://lusingander.github.io/stu/
MIT License
206 stars 8 forks source link

Example for config.toml with credentials #9

Closed Nebucatnetzer closed 4 months ago

Nebucatnetzer commented 4 months ago

I'm struggling to provide a working config.toml or environment variables. Should I be able to use the environment variables for AWS? Just like this AWS_ENDPOINT_URL? For me this doesn't seem to be working. Only when I provide the endpoint with -e I get a matching error message in the log file.

lusingander commented 4 months ago

At least for now, config.toml has nothing to do with connection information to AWS. The configurable items in config.toml are all described in Config section of README.

You should be able to connect to AWS the same way you would connect to the AWS CLI. If you are unable to connect, please explain in more detail the environment variables and startup arguments you are specifying.

Also, $STU_ROOT_DIR/error.log may be useful if you encounter errors. However, since this file is intended to assist development, the necessary information may not be output in an easy-to-understand format.

Nebucatnetzer commented 4 months ago

Ah I misunderstood that then. I will try to connect with the CLI first, see how that goes and report back.

Nebucatnetzer commented 4 months ago

Well it's a bit embarrassing but I've realised that the storage I'm trying to connect to only provides an Openstack Swift interface and no S3 interface.

BTW. would you mind if I package your application for NixOS? I've basically already done it, I would just have to open a pull request at the Nixpkgs repository.

lusingander commented 4 months ago

Well it's a bit embarrassing but I've realised that the storage I'm trying to connect to only provides an Openstack Swift interface and no S3 interface.

I see, no problem.

BTW. would you mind if I package your application for NixOS? I've basically already done it, I would just have to open a pull request at the Nixpkgs repository.

I don't use Nix myself, but it sounds good.

Nebucatnetzer commented 4 months ago

https://github.com/NixOS/nixpkgs/pull/314539