mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Finish migration to NixOS modules
This commit is contained in:
parent
aef5eabce5
commit
d944e36197
21 changed files with 1071 additions and 1151 deletions
|
|
@ -1,21 +1,24 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
{ config, lib, ... }:
|
||||
let cfg = config.custom.services.monero;
|
||||
in {
|
||||
options.custom.services.monero = { enable = lib.mkEnableOption "monero"; };
|
||||
|
||||
services.monero = {
|
||||
enable = true;
|
||||
rpc.restricted = true;
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.monero = {
|
||||
enable = true;
|
||||
rpc.restricted = true;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."monero.${config.networking.domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
services.nginx.virtualHosts."monero.${config.networking.domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:18081";
|
||||
extraConfig = ''
|
||||
proxy_http_version 1.1;
|
||||
'';
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:18081";
|
||||
extraConfig = ''
|
||||
proxy_http_version 1.1;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue