GithubHelp home page GithubHelp logo

bertbaron / intravatar Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 5.0 107 KB

Simple avatar service meant for intranet usage

License: Eclipse Public License 1.0

Go 83.48% HTML 9.14% CSS 0.71% Makefile 4.02% Dockerfile 2.65%

intravatar's People

Contributors

bertbaron avatar daus-salar avatar ryklebaron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

intravatar's Issues

s3 storage support

Would be a great feature if intravatar would support s3 to store the avatar images. This would make the docker not rely on a docker volume.

config.ini on Windows should have windows line endings

On most Windows installations the config.ini will by default open with notepad, which does not handle unix line endings. Therefore we better make sure that it has windows line endings when added to the zip archive

Respect cache headers from remote

Intravatar does currently not respect the cache headers from the remote services. The reason is that it allows caching for a short period (currently 5 minutes) for its own requests so that changes will be picked up in decent time. However, if a remote service generates images that should be cached for a longer period intravatar should respect this.
The only way seems to be to cache those requests ourselves, so it will require some effort to implement this (unless we can find some proxy library that does this already). On the other hand, caching might greatly improve response time and will offload the remote services.

Security issue when remote sends something else than an image

Images retrieved from remote service are currently simply passed trough. This means that anything else than a correct image will also be passed trough. This can lead to surprising results if the site for example returns a html page for some reason. Even worse, it is a security issue if the remote site can not be trusted.

Therefore we should always read the reply as image. This can simply be achieved by always converting the image.

Data directory structure should be created when needed

When unpacking and running the application, uploads of images fails with a file not found error. The data directory (structure) should be part of the archive or it should be automatically created when needed (this should at least happen for any subdirectories)

Log rotation

The default logging library doesn't seem to support log rotation. To avoid ever growing disc usage we better look for a logging library that supports log rotation. A nice extra would be support for log levels also.

Restrict possible email domains

I would be a nice feature to restrict the possible domains for emails to only allow emails of the company. An additional config line with comma separated values would work perfectly for us.

Thanks for the simple tool.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.