mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
123
This commit is contained in:
+35
-35
@@ -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.zeroq.ru" = {
|
"x.zeroq.ru" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
@@ -160,28 +160,28 @@ in
|
|||||||
client_max_body_size 5G;
|
client_max_body_size 5G;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"pdf.zeroq.ru" = {
|
# "pdf.zeroq.ru" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
proxyPass = "http://${server}:6060";
|
# proxyPass = "http://${server}:6060";
|
||||||
proxyWebsockets = true;
|
# proxyWebsockets = true;
|
||||||
};
|
# };
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 5G;
|
# client_max_body_size 5G;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
"ai.zeroq.ru" = {
|
# "ai.zeroq.ru" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
proxyPass = "http://${server}:11112";
|
# proxyPass = "http://${server}:11112";
|
||||||
proxyWebsockets = true;
|
# proxyWebsockets = true;
|
||||||
};
|
# };
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 5G;
|
# client_max_body_size 5G;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user