mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 12:40:44 +03:00
123
This commit is contained in:
@@ -16,18 +16,6 @@ in
|
|||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"zeroq.ru" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
kTLS = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://${server}:6060";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
extraConfig = ''
|
|
||||||
client_max_body_size 5G;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
"mealie.zeroq.ru" = {
|
"mealie.zeroq.ru" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
@@ -129,20 +117,6 @@ in
|
|||||||
defaults = {
|
defaults = {
|
||||||
email = "go.bin043120@gmail.com";
|
email = "go.bin043120@gmail.com";
|
||||||
};
|
};
|
||||||
certs."zeroq.ru" = {
|
|
||||||
# DNS challenge обязательно для wildcard
|
|
||||||
dnsProvider = "regru"; # нужен плагин acme.sh для REG.RU
|
|
||||||
# Подключаем креды
|
|
||||||
credentials = {
|
|
||||||
REGRU_USERNAME = inputs.zeroq-credentials.services.acme.username;
|
|
||||||
REGRU_PASSWORD = inputs.zeroq-credentials.services.acme.password;
|
|
||||||
};
|
|
||||||
# wildcard домен
|
|
||||||
identifiers = [
|
|
||||||
"*.zeroq.ru"
|
|
||||||
"zeroq.ru"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
|
|||||||
Reference in New Issue
Block a user