mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+90
-90
@@ -19,20 +19,20 @@ in
|
|||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
appendHttpConfig = inputs.zeroq-credentials.services.xray.maps;
|
appendHttpConfig = inputs.zeroq-credentials.services.xray.maps;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"pubray.zeroq.ru" = {
|
# "pubray.zeroq.ru" = {
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
root = "${inputs.zeroq-credentials.services.xray.subs}";
|
# root = "${inputs.zeroq-credentials.services.xray.subs}";
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
auth_basic "Restricted";
|
# auth_basic "Restricted";
|
||||||
auth_basic_user_file /etc/nginx/pubray;
|
# auth_basic_user_file /etc/nginx/pubray;
|
||||||
|
|
||||||
if ($subfile = "") { return 403; }
|
# if ($subfile = "") { return 403; }
|
||||||
rewrite ^/$ $subfile break;
|
# rewrite ^/$ $subfile break;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
"x.new.zeroq.ru" = {
|
"x.new.zeroq.ru" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
@@ -47,17 +47,17 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"kuma.new.zeroq.ru" = {
|
# "kuma.new.zeroq.ru" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
proxyPass = "http://${server}:4001";
|
# proxyPass = "http://${server}:4001";
|
||||||
proxyWebsockets = true;
|
# proxyWebsockets = true;
|
||||||
};
|
# };
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 5G;
|
# client_max_body_size 5G;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
# "node-red.zeroq.ru" = {
|
# "node-red.zeroq.ru" = {
|
||||||
# forceSSL = true;
|
# forceSSL = true;
|
||||||
# enableACME = true;
|
# enableACME = true;
|
||||||
@@ -94,72 +94,72 @@ in
|
|||||||
# # };
|
# # };
|
||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
"flux.new.zeroq.ru" = {
|
# "flux.new.zeroq.ru" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
proxyPass = "http://${server}:6061";
|
# proxyPass = "http://${server}:6061";
|
||||||
proxyWebsockets = true;
|
# proxyWebsockets = true;
|
||||||
};
|
# };
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 5G;
|
# client_max_body_size 5G;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
"office.new.zeroq.ru" = {
|
# "office.new.zeroq.ru" = {
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
locations = {
|
# locations = {
|
||||||
"/" = {
|
# "/" = {
|
||||||
proxyPass = "http://${server}:9980"; # API и coauthoring
|
# proxyPass = "http://${server}:9980"; # API и coauthoring
|
||||||
proxyWebsockets = true;
|
# proxyWebsockets = true;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 5G;
|
# client_max_body_size 5G;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
''; # absolute_redirect off;
|
# ''; # absolute_redirect off;
|
||||||
};
|
# };
|
||||||
"immich.new.zeroq.ru" = {
|
# "immich.new.zeroq.ru" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
proxyPass = "http://${server}:2283";
|
# proxyPass = "http://${server}:2283";
|
||||||
proxyWebsockets = true;
|
# proxyWebsockets = true;
|
||||||
};
|
# };
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 5G;
|
# client_max_body_size 5G;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
"nextcloud.new.zeroq.ru" = {
|
# "nextcloud.new.zeroq.ru" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
locations = {
|
# locations = {
|
||||||
"/" = {
|
# "/" = {
|
||||||
proxyPass = "http://${server}:10000";
|
# proxyPass = "http://${server}:10000";
|
||||||
proxyWebsockets = true;
|
# proxyWebsockets = true;
|
||||||
};
|
# };
|
||||||
"/whiteboard" = {
|
# "/whiteboard" = {
|
||||||
proxyPass = "http://${server}:3002";
|
# proxyPass = "http://${server}:3002";
|
||||||
proxyWebsockets = true;
|
# proxyWebsockets = true;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 5G;
|
# client_max_body_size 5G;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
"calibre.new.zeroq.ru" = {
|
# "calibre.new.zeroq.ru" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
proxyPass = "http://${server}:8083";
|
# proxyPass = "http://${server}:8083";
|
||||||
proxyWebsockets = true;
|
# proxyWebsockets = true;
|
||||||
};
|
# };
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 5G;
|
# client_max_body_size 5G;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
# "pdf.new.zeroq.ru" = {
|
# "pdf.new.zeroq.ru" = {
|
||||||
# forceSSL = true;
|
# forceSSL = true;
|
||||||
# enableACME = true;
|
# enableACME = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user