Comments (8)
Genial. That worked!
from teslamate.
Thanks! Glad you like it.
When running on a cloud server, I would also feel very uncomfortable about exposing grafana and/or teslamate to the internet. Especially with the default docker-compose config the database user used by grafana is not restricted to read access only. Also, the API tokens are stored in the database. Therefore, with the default setup the tokens could be retrieved through grafana.
Personally, I would not want to rely on authentication provided by grafana. So there are two alternatives in my opinion:
- don't publicly expose any port at all and instead use a VPN (e.g. wireguard) to connect to the server.
- use a reverse-proxy that provides proper HTTPS and HTTP basic access authentication e.g. nginx or Traefik. The latter has everything built-in and requires a minimal config.
from teslamate.
I run behind a reverse proxy (letsencrypt-companion) but grafana does support quite a few different auth mechanisms. You can specify those options in your docker config as env vars.
from teslamate.
thanks for the ideas
from teslamate.
How would _ set GF_AUTH_ANONYMOUS_ENABLED to false, so that Grafana only works with a valid login? And, btw, how could I add a user to Grafana? I am geeting "Permission denied", when trying that under admin...
from teslamate.
Add GF_AUTH_ANONYMOUS_ENABLED
to the docker-compose file:
grafana:
image: teslamate/grafana:latest
environment:
- DATABASE_USER=teslamate
- DATABASE_PASS=secret
- DATABASE_NAME=teslamate
- DATABASE_HOST=db
- GF_AUTH_ANONYMOUS_ENABLED=false
ports:
- 3000:3000
volumes:
- teslamate-grafana-data:/var/lib/grafana
To create a new user login with the default admin user (password is admin
) first.
from teslamate.
Thanks, great. How could I add another user then?
from teslamate.
Did you try that: https://community.grafana.com/t/previous-page-next-page-add-users-without-having-to-send-an-invite/11460
from teslamate.
Related Issues (20)
- postgres warning
- [Feature Request] Sentry State HOT 1
- Some location can't be resolved in China HOT 2
- 因为我服务器上80和443端口已经被其他应用修改,所以我修改80端口为8866端口,但貌似grafana打不开了?
- Battery Health has errors, the battery suddenly becomes healthy HOT 4
- Missing drive data - not exists in TeslaMate, exists in TeslaFi HOT 6
- Import from TeslaFi Does Not Appear to do Anything? HOT 7
- Failing to export teslamate.bck on macOS Docker Desktop HOT 4
- Backup not working HOT 4
- the same UID is used more than once in Grafana HOT 3
- Teslamate not starting HOT 1
- Backup not working (on Rasberry PI ) HOT 2
- bug after update docker HOT 1
- Endpoint is only available on fleetapi HOT 64
- [Feature Request] Efficiency based on tire set (Summer/Winter/All Season)
- Missing v1.28.2 ghcr.io build? HOT 2
- Grafana "This site can't be reached" HOT 7
- Intermittent charges incorrectly recorded HOT 9
- Impossible GPS coordinates HOT 1
- Suspend logging is not needed anymore as car falls asleep even while polling HOT 47
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teslamate.