Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read profile and key from _FILE secrets #34

Merged
merged 2 commits into from
Aug 22, 2024
Merged

Conversation

nfx
Copy link
Contributor

@nfx nfx commented Jun 26, 2024

See https://docs.docker.com/engine/swarm/secrets/#advanced-example-use-secrets-with-a-wordpress-service

tests:

NEXTDNS_PROFILE=... NEXTDNS_API_KEY=... go test ./...
?       github.com/raylas/nextdns-exporter      [no test files]
ok      github.com/raylas/nextdns-exporter/internal/api (cached)
ok      github.com/raylas/nextdns-exporter/internal/util        0.150s

tested via:

NEXTDNS_PROFILE_FILE=../nextdns/profile NEXTDNS_API_KEY_FILE=../nextdns/api go run .

nfx and others added 2 commits June 26, 2024 02:07
```
NEXTDNS_PROFILE=... NEXTDNS_API_KEY=... go test ./...
?       github.com/raylas/nextdns-exporter      [no test files]
ok      github.com/raylas/nextdns-exporter/internal/api (cached)
ok      github.com/raylas/nextdns-exporter/internal/util        0.150s
```
@nfx
Copy link
Contributor Author

nfx commented Jun 26, 2024

@raylas PTAL :)

Copy link
Owner

@raylas raylas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nfx!

@raylas raylas merged commit fd62469 into raylas:main Aug 22, 2024
@nfx nfx deleted the secret-files branch November 8, 2024 00:12
@nfx
Copy link
Contributor Author

nfx commented Nov 8, 2024

@raylas yay, finally i can use it. somehow missed the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants