mail updaten and codimd
This commit is contained in:
parent
487780733c
commit
492c2c353d
2 changed files with 19 additions and 21 deletions
|
@ -1,39 +1,36 @@
|
||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
domain = "md.ingolf-wagner.de";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
services.nginx.virtualHosts.hedgedoc = {
|
services.nginx.virtualHosts.hedgedoc = {
|
||||||
listen = [
|
|
||||||
{
|
|
||||||
addr = "0.0.0.0";
|
|
||||||
port = 4443;
|
|
||||||
ssl = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
addr = "0.0.0.0";
|
|
||||||
port = 80;
|
|
||||||
ssl = false;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
addSSL = true;
|
forceSSL = true;
|
||||||
serverName = "md.ingolf-wagner.de";
|
serverName = domain;
|
||||||
locations."/".extraConfig = ''
|
locations."/" = {
|
||||||
client_max_body_size 4G;
|
proxyPass = "http://localhost:3091";
|
||||||
proxy_set_header Host $host;
|
proxyWebsockets = true;
|
||||||
proxy_pass http://localhost:3091;
|
|
||||||
'';
|
#extraConfig = ''
|
||||||
|
# client_max_body_size 4G;
|
||||||
|
#'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.hedgedoc = {
|
services.hedgedoc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configuration = {
|
configuration = {
|
||||||
allowFreeURL = true;
|
|
||||||
db = {
|
db = {
|
||||||
dialect = "sqlite";
|
dialect = "sqlite";
|
||||||
storage = "/var/lib/hedgedoc/db.sqlite";
|
storage = "/var/lib/hedgedoc/db.sqlite";
|
||||||
useCDN = false;
|
useCDN = false;
|
||||||
};
|
};
|
||||||
|
allowFreeURL = true;
|
||||||
|
domain = domain;
|
||||||
port = 3091;
|
port = 3091;
|
||||||
|
useCDN = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
let
|
let
|
||||||
junk_filter = [
|
junk_filter = [
|
||||||
"from:booking.com"
|
"from:booking.com"
|
||||||
|
"subject:Gewinn"
|
||||||
"from:brompton.com"
|
"from:brompton.com"
|
||||||
"from:circleci.com OR (from:noreply@github.com AND to:audio-overlay@googlegroups.com)"
|
"from:circleci.com OR (from:noreply@github.com AND to:audio-overlay@googlegroups.com)"
|
||||||
"from:codepen.io"
|
"from:codepen.io"
|
||||||
|
|
Loading…
Reference in a new issue