mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
fix: nginx for radicale
This commit is contained in:
parent
46de81538f
commit
8af26da6c2
1 changed files with 21 additions and 20 deletions
|
|
@ -12,24 +12,25 @@
|
|||
};
|
||||
};
|
||||
|
||||
# services.nginx = {
|
||||
# enable = true;
|
||||
# recommendedProxySettings = true;
|
||||
# recommendedTlsSettings = true;
|
||||
# virtualHosts = {
|
||||
# "calendar.liv.town" = {
|
||||
# forceSSL = true;
|
||||
# enableACME = true;
|
||||
# # locations."/radicale/" = {
|
||||
# locations."/" = {
|
||||
# proxyPass = "http://127.0.0.1:5232/";
|
||||
# extraConfig = ''
|
||||
# # proxy_set_header X-Script-Name /radicale;
|
||||
# proxy_set_header X-Script-Name /;
|
||||
# proxy_pass_header Authorization;
|
||||
# '';
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
virtualHosts = {
|
||||
"calendar.liv.town" = {
|
||||
forceSSL = true;
|
||||
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
||||
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
||||
# locations."/radicale/" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:5232/";
|
||||
# extraConfig = ''
|
||||
# # proxy_set_header X-Script-Name /radicale;
|
||||
# # proxy_set_header X-Script-Name /;
|
||||
# proxy_pass_header Authorization;
|
||||
# '';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue