syncthing+nx2site(trying)
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
{ config, pkgs, lib, user }:
|
||||
lib.mkIf false
|
||||
{
|
||||
sops.secrets = {
|
||||
"nx2site/sslCertificate.pem" = { owner = config.services.nginx.user; };
|
||||
"nx2site/sslCertificateKey.pem" = { owner = config.services.nginx.user; };
|
||||
"nx2site/dhparams.pem" = { owner = config.services.nginx.user; };
|
||||
};
|
||||
services.nginx = let
|
||||
config-root = /home/${user}/nx2site/proxy/config;
|
||||
xcontent-root = /home/${user}/nx2site/proxy/xcontent;
|
||||
content-root = /home/${user}/nx2site/proxy/content;
|
||||
in {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
additionalModules = [];
|
||||
# appendConfig = '''';
|
||||
@@ -116,8 +113,7 @@
|
||||
};
|
||||
};
|
||||
# "dev.nx2.site" = {
|
||||
# kTLS = true; http2 = true; http3 = true; http3_hq = true; quic = true;
|
||||
sslCertificate = cert; sslCertificateKey = key;
|
||||
# inherit sslCertificate sslCertificateKey kTLS http2 http3 http3_hq quic;
|
||||
# listen = [ { addr = "0.0.0.0"; port = 443; ssl = true; } ];
|
||||
# locations = {
|
||||
# "/" = {
|
||||
@@ -149,7 +145,7 @@
|
||||
"/socket.io" = {
|
||||
proxyPass = "http://share/socket.io";
|
||||
proxyWebsockets = true;
|
||||
# extraConfig = [
|
||||
# extraConfig = [
|
||||
# ''proxy_http_version 1.1;''
|
||||
# ''proxy_set_header Upgrade $http_upgrade;''
|
||||
# ''proxy_set_header Connection "upgrade";''
|
||||
@@ -176,9 +172,7 @@
|
||||
# listen = [ { addr = "0.0.0.0"; port = 443; ssl = true; } ];
|
||||
root = "/home/nx2/nx2site/staticweb/xcontent/";
|
||||
locations = {
|
||||
"~.*" = {
|
||||
return = "502 /502.html";
|
||||
};
|
||||
"~.*" = { return = "502 /502.html"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user