This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/hosts/carbon/services/privacy/rimgo.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-29 17:15:20 +02:00
{ pkgs, config, ... }: {
services.rimgo = {
enable = true;
settings = {
ADDRESS = "0.0.0.0";
PORT = 4312;
FIBER_PREFORK = "false";
2024-05-29 17:15:20 +02:00
# Link to a privacy policy (optional)
PRIVACY_POLICY = "https://4o1x5.dev/privacy-policy";
# Explain how this data is used/why it is collected (optional)
PRIVACY_MESSAGE = "Read my privacy policy on my website";
# Country where instance is located. Leave blank if running on Tor without clearnet.
PRIVACY_COUNTRY = "HU";
# Hosting provider or ISP name. Leave blank if running on Tor without clearnet.
PRIVACY_PROVIDER = "Telekom";
PRIVACY_CLOUDFLARE = "false";
PRIVACY_NOT_COLLECTED = "false";
2024-05-29 17:15:20 +02:00
PRIVACY_IP = "true";
PRIVACY_URL = "true";
PRIVACY_DEVICE = "true";
PRIVACY_DIAGNOSTICS = "false";
2024-05-29 17:15:20 +02:00
};
};
services.nginx = {
virtualHosts = {
"rimgo.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = " http://127.0.0.1:${toString config.services.rimgo.settings.PORT}";
2024-05-29 17:15:20 +02:00
};
};
};
};
}