disable 3proxy, set http3 on virtual hosts
This commit is contained in:
parent
b0c9edaddf
commit
b07404b152
@ -145,6 +145,7 @@
|
||||
|
||||
virtualHosts."project-cloud.net" = {
|
||||
quic = true;
|
||||
http3 = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
root = "${project-cloud.packages.${system}.default}/public";
|
||||
@ -152,12 +153,14 @@
|
||||
|
||||
virtualHosts.${config.services.nextcloud.hostName} = {
|
||||
quic = true;
|
||||
http3 = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
};
|
||||
|
||||
virtualHosts."miniflux.project-cloud.net" = {
|
||||
quic = true;
|
||||
http3 = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
@ -167,6 +170,7 @@
|
||||
|
||||
virtualHosts.${config.services.gitea.settings.server.DOMAIN} = {
|
||||
quic = true;
|
||||
http3 = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
@ -176,6 +180,7 @@
|
||||
|
||||
virtualHosts."stats.project-cloud.net" = {
|
||||
quic = true;
|
||||
http3 = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
@ -230,24 +235,6 @@
|
||||
ProtectSystem = lib.mkForce false;
|
||||
};
|
||||
|
||||
services._3proxy = {
|
||||
enable = true;
|
||||
services = [
|
||||
{
|
||||
type = "socks";
|
||||
auth = ["strong"];
|
||||
acl = [
|
||||
{
|
||||
rule = "allow";
|
||||
users = ["3proxy_user"];
|
||||
}
|
||||
];
|
||||
bindPort = 13128;
|
||||
}
|
||||
];
|
||||
usersFile = config.sops.secrets."3proxy".path;
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "asmir.abdulahovic@gmail.com";
|
||||
@ -277,14 +264,9 @@
|
||||
owner = config.users.users.nextcloud.name;
|
||||
};
|
||||
|
||||
sops.secrets."3proxy" = {
|
||||
sopsFile = ./secrets/3proxy.yaml;
|
||||
};
|
||||
|
||||
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [80 443 587 13128];
|
||||
networking.firewall.allowedUDPPorts = [];
|
||||
networking.firewall.allowedTCPPorts = [80 443 587];
|
||||
networking.firewall.allowedUDPPorts = [443];
|
||||
networking.firewall.allowPing = true;
|
||||
networking.firewall.logRefusedConnections = lib.mkDefault false;
|
||||
networking.hostName = "magpie";
|
||||
|
Loading…
Reference in New Issue
Block a user