Lauti: Difference between revisions

Onny (talk | contribs)
add missing OSM config
Onny (talk | contribs)
Rename eintopf to lauti
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[https://codeberg.org/Klasse-Methode/eintopf Eintopf] is a community event calendar for groups and places.
[https://lauti.org Lauti] is a community event calendar for groups and places.


== Setup ==
== Setup ==
Line 6: Line 6:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
environment.etc."eintopf-secrets".text = ''
environment.etc."lauti-secrets".text = ''
EINTOPF_ADMIN_PASSWORD=test123
LAUTI_ADMIN_PASSWORD=test123
'';
'';


Line 13: Line 13:
   enable = true;
   enable = true;
   settings = {
   settings = {
     EINTOPF_ADMIN_EMAIL = "test@example.org";
     LAUTI_ADMIN_EMAIL = "test@example.org";
     EINTOPF_BASE_URL = "http://localhost:3333";
     LAUTI_BASE_URL = "http://localhost:3333";
     EINTOPF_OSM_TILE_CACHE_DIR = "/var/lib/eintopf/osm";
     LAUTI_OSM_TILE_CACHE_DIR = "/var/lib/eintopf/osm";
     EINTOPF_OSM_TILE_SERVER = "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
     LAUTI_OSM_TILE_SERVER = "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
    LAUTI_TIMEZONE = "Europe/Berlin";
    LAUTI_LANGUAGE = "en";
   };
   };
   secrets = [ /etc/eintopf-secrets ];
   secrets = [ /etc/lauti-secrets ];
};
};
</syntaxhighlight>
</syntaxhighlight>
Line 37: Line 39:
       owner = "onny";
       owner = "onny";
       repo = "eintopf-karlsunruh";
       repo = "eintopf-karlsunruh";
       rev = "d762afc3fbd8e0a88d9752ad59aa5129da921982";
       rev = "17622a22234b7eb664436582ee6147070c1b08bb";
       hash = "";
       hash = "sha256-cW1Q5clLy8b2/DblKWy5i307inymxuOz6gtY1+iHRKo=";
     };
     };
     makeFlags = [ "DESTDIR=$(out)" ];
     makeFlags = [ "DESTDIR=$(out)" ];
Line 49: Line 51:
     enable = true;
     enable = true;
     settings = {
     settings = {
       EINTOPF_THEMES = "eintopf,${template-karlsunruh}";
       LAUTI_THEME = "karlsunruh";
      LAUTI_THEMES_PATH = "${template-karlsunruh}";
     };
     };
   };
   };
Line 58: Line 61:
== Tips and tricks ==
== Tips and tricks ==


=== Sync events from Radar to Eintopf ===
=== Sync events from Radar to Lauti ===
The following script can be imported into the NixOS system configuration and will runs every half an hour to sync events from a given Radar group id to a specific target Eintopf instance.
The following script can be imported into the NixOS system configuration and will runs every half an hour to sync events from a given Radar group id to a specific target Lauti instance.


Import the module and script into your system <code>flake.nix</code> file<syntaxhighlight lang="nix">
Import the module and script into your system <code>flake.nix</code> file<syntaxhighlight lang="nix">
Line 104: Line 107:
   secrets = [ /etc/eintopf-radar-sync-secrets ];
   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 Lauti Swagger api interface, for example <nowiki>http://localhost:3333/api/v1/swagger#/auth/login</nowiki>
[[Category:Server]]
[[Category:Server]]
[[Category:Web Applications]]
[[Category:Web Applications]]