enable acme for the ifsr base domain

This commit is contained in:
Rouven Seifert 2023-05-31 15:14:14 +02:00
parent 666e6b4425
commit 0dd03b0965
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -2,6 +2,10 @@
{ {
services.nginx = { services.nginx = {
enable = true; enable = true;
virtualHosts."${config.fsr.domain}" = {
enableACME = true;
forceSSL = true;
};
appendHttpConfig = '' appendHttpConfig = ''
map $remote_addr $remote_addr_anon { map $remote_addr $remote_addr_anon {
~(?P<ip>\d+\.\d+\.\d+)\. $ip.0; ~(?P<ip>\d+\.\d+\.\d+)\. $ip.0;