Compare commits
34 commits
aac445108b
...
99cdbdd49c
Author | SHA1 | Date | |
---|---|---|---|
99cdbdd49c | |||
3a0538f41a | |||
2cfa203f2c | |||
998eafcca4 | |||
892d10f02b | |||
0284ea30e4 | |||
176c1cc354 | |||
af27a144ea | |||
|
bfb0387f04 | ||
|
08cee5cdba | ||
|
225fb54687 | ||
|
90bf07ec8f | ||
|
aca0456568 | ||
|
54966e3417 | ||
|
a0f6075f72 | ||
|
91c015972d | ||
|
26e8f736ea | ||
|
926844cd1a | ||
|
40c88117be | ||
|
fa00269738 | ||
|
2ea1173111 | ||
|
6db578d385 | ||
|
7893327136 | ||
|
60eb69b118 | ||
|
ae856e1c9e | ||
|
91092c3cda | ||
|
0b0bae3f9d | ||
|
81187bf0ff | ||
|
36394ceaf0 | ||
6473ce5e65 | |||
afe1484b0d | |||
1608428cdb | |||
0027951cf7 | |||
311d28653f |
5 changed files with 53 additions and 8 deletions
|
@ -44,4 +44,16 @@ in
|
||||||
extraGroups = [ "docker" ];
|
extraGroups = [ "docker" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
mysql = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.mariadb;
|
||||||
|
settings = {
|
||||||
|
mysqld = {
|
||||||
|
port = 8000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
openssl passwd -6 $1 > dev_user_password.pw
|
|
||||||
|
|
||||||
colmena apply
|
|
|
@ -36,6 +36,11 @@ in
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 512M;
|
client_max_body_size 512M;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
'';
|
'';
|
||||||
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
||||||
};
|
};
|
||||||
|
@ -51,6 +56,14 @@ in
|
||||||
ROOT_URL = "https://${srv.DOMAIN}";
|
ROOT_URL = "https://${srv.DOMAIN}";
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
SSH_PORT = 62;
|
SSH_PORT = 62;
|
||||||
|
|
||||||
|
# STATIC_ROOT_PATH = pkgs.runCommand "patch-templates" { } ''
|
||||||
|
# mkdir -p $out
|
||||||
|
# ${pkgs.lib.getExe' pkgs.coreutils "cp"} -r ${pkgs.forgejo.data}/* $out
|
||||||
|
# chmod u+w $out/templates/home.tmpl
|
||||||
|
# ${pkgs.lib.getExe' pkgs.coreutils "cp"} -f ${./home.tmpl} $out/templates/home.tmpl
|
||||||
|
# chmod u-w $out/templates/home.tmpl
|
||||||
|
# '';
|
||||||
};
|
};
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
actions = {
|
actions = {
|
||||||
|
@ -59,9 +72,11 @@ in
|
||||||
};
|
};
|
||||||
mailer = {
|
mailer = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
SMTP_ADDR = "TODO";
|
PROTOCOL = "smtp";
|
||||||
FROM = "noreply@${srv.DOMAIN}";
|
SMTP_ADDR = "80.151.91.109";
|
||||||
USER = "noreply@${srv.DOMAIN}";
|
SMTP_PORT = 25;
|
||||||
|
FROM = "noreply@ptspaper.de";
|
||||||
|
USER = "noreply@ptspaper.de";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dump = {
|
dump = {
|
||||||
|
@ -73,6 +88,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
openssh = {
|
openssh = {
|
||||||
ports = [ 62 ];
|
ports = [ 62 ];
|
||||||
settings = {
|
settings = {
|
||||||
|
|
19
home.tmpl
Normal file
19
home.tmpl
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{{template "base/head" .}}
|
||||||
|
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
|
||||||
|
<div class="tw-mb-8 tw-px-8">
|
||||||
|
<div class="center">
|
||||||
|
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
|
||||||
|
<div class="hero">
|
||||||
|
<h1 class="ui icon header title">
|
||||||
|
{{AppDisplayName}}
|
||||||
|
</h1>
|
||||||
|
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
|
||||||
|
<!-- <h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
|
||||||
|
<h2>Das ist der Entwicklungsserver der PTS.</h2>
|
||||||
|
<h2>Zur PTS-Website geht es <a href="https://www.ptspaper.de/de/">hier</a></h2> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{template "home_forgejo" .}}
|
||||||
|
</div>
|
||||||
|
{{template "base/footer" .}}
|
|
@ -20,6 +20,8 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
htop
|
htop
|
||||||
|
inetutils
|
||||||
|
msmtp
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|
Loading…
Reference in a new issue