hiroshi/languagetool: Migrate from fuuko
This commit is contained in:
parent
79707438c2
commit
e9fce22b71
|
@ -9,7 +9,6 @@
|
|||
../../modules
|
||||
../../users/simon
|
||||
|
||||
./services/languagetool.nix
|
||||
./services/media-backup.nix
|
||||
./services/media.nix
|
||||
./services/photoprism.nix
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules
|
||||
|
||||
./services/languagetool.nix
|
||||
];
|
||||
|
||||
sbruder = {
|
||||
|
@ -13,6 +15,10 @@
|
|||
restic.system.enable = true;
|
||||
wireguard.home.enable = true;
|
||||
infovhost.enable = true;
|
||||
nginx = {
|
||||
hardening.enable = true;
|
||||
proxyv4.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
networking.hostName = "hiroshi";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# SPDX-FileCopyrightText: 2023 Simon Bruder <simon@sbruder.de>
|
||||
# SPDX-FileCopyrightText: 2023-2024 Simon Bruder <simon@sbruder.de>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
|
@ -12,8 +12,9 @@ in
|
|||
#allowOrigin = "https://languagetool.sbruder.de";
|
||||
allowOrigin = "*";
|
||||
settings = {
|
||||
# http://languagetool.org/download/ngram-data/
|
||||
languageModel = "/var/lib/languagetool/ngrams";
|
||||
word2vecModel = "/var/lib/languagetool/word2vec";
|
||||
# https://fasttext.cc/docs/en/language-identification.html
|
||||
fasttextModel = "/var/lib/languagetool/fasttext/lid.176.bin";
|
||||
fasttextBinary = "${pkgs.fasttext}/bin/fasttext";
|
||||
};
|
||||
|
@ -23,6 +24,9 @@ in
|
|||
#systemd.services.languagetool.serviceConfig.StandardOutput = "null";
|
||||
|
||||
services.nginx.virtualHosts."languagetool.sbruder.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
locations = {
|
||||
"/".proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
||||
};
|
|
@ -5,7 +5,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
baseDomain = "koyomi.sbruder.de";
|
||||
backends = { };
|
||||
backends = {
|
||||
hiroshi = [
|
||||
"languagetool.sbruder.de"
|
||||
];
|
||||
};
|
||||
|
||||
fallbackCert = pkgs.runCommandNoCC "fallback-cert" { } ''
|
||||
cat > openssl.cnf << EOF
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
};
|
||||
})
|
||||
[
|
||||
"languagetool.sbruder.de"
|
||||
"media.sbruder.de"
|
||||
"photoprism.sbruder.de"
|
||||
"torrent.sbruder.de"
|
||||
|
|
Loading…
Reference in a new issue