mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
fix: make radicale work woah
This commit is contained in:
parent
826334c561
commit
1f65af50d6
1 changed files with 9 additions and 7 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
server.hosts = [ "0.0.0.0:5232" ];
|
server.hosts = [ "0.0.0.0:5232" ];
|
||||||
auth = {
|
auth = {
|
||||||
type = "htpasswd";
|
type = "htpasswd";
|
||||||
htpasswd_filename = "/home/liv/radicaleusers";
|
htpasswd_filename = "/etc/radicale/htpasswd";
|
||||||
htpasswd_encryption = "bcrypt";
|
htpasswd_encryption = "bcrypt";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -17,18 +17,20 @@
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"calendar.liv.town" = {
|
"plan.liv.town" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
||||||
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
||||||
# locations."/radicale/" = {
|
# locations."/radicale/" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:5232/";
|
proxyPass = "http://127.0.0.1:5232/";
|
||||||
# extraConfig = ''
|
proxyWebsockets = true;
|
||||||
# # proxy_set_header X-Script-Name /radicale;
|
extraConfig = ''
|
||||||
# # proxy_set_header X-Script-Name /;
|
proxy_connect_timeout 300;
|
||||||
# proxy_pass_header Authorization;
|
proxy_send_timeout 300;
|
||||||
# '';
|
proxy_read_timeout 300;
|
||||||
|
send_timeout 300;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue