Add gitea module

This commit is contained in:
Lyn Fugmann 2023-06-22 00:05:52 +02:00
parent 32b74fefd1
commit a2360c9f56
Signed by untrusted user: fugi
GPG key ID: 4472A20091BFA792
3 changed files with 123 additions and 0 deletions
modules

View file

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