Lauti: Difference between revisions

Onny (talk | contribs)
mNo edit summary
Onny (talk | contribs)
use secrets option in radar-sync script
Line 88: Line 88:


</syntaxhighlight>Enable the sync service in your system configuration by adding following snippet. Replace the setting variables according to your setup<syntaxhighlight lang="nix">
</syntaxhighlight>Enable the sync service in your system configuration by adding following snippet. Replace the setting variables according to your setup<syntaxhighlight lang="nix">
environment.etc."eintopf-radar-sync-secrets".text = ''
EINTOPF_AUTHORIZATION_TOKEN=foobar23
'';
services.eintopf-radar-sync = {
services.eintopf-radar-sync = {
   enable = true;
   enable = true;
   settings = {
   settings = {
     EINTOPF_URL = "https://karlsunruh.project-insanity.org";
     EINTOPF_URL = "https://karlsunruh.project-insanity.org";
    EINTOPF_AUTHORIZATION_TOKEN = "SECRET TOKEN";
     RADAR_GROUP_ID = "436012";
     RADAR_GROUP_ID = "436012";
   };
   };
  secrets = [ /etc/eintopf-radar-sync-secrets ];
};
};
</syntaxhighlight>Get the authorization token through login request in the Eintopf Swagger api interface, for example <nowiki>https://karlsunruh.project-insanity.org/api/v1/swagger#/auth/login</nowiki>
</syntaxhighlight>Get the authorization token through login request in the Eintopf Swagger api interface, for example <nowiki>https://karlsunruh.project-insanity.org/api/v1/swagger#/auth/login</nowiki>
[[Category:Server]]
[[Category:Server]]
[[Category:Web Applications]]
[[Category:Web Applications]]