mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
updates to server modules
This commit is contained in:
parent
de564231e7
commit
9cb8467224
2 changed files with 17 additions and 15 deletions
|
|
@ -10,26 +10,26 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
users = {
|
||||
users = {
|
||||
"nginx" = {
|
||||
"${config.services.nginx.user}" = {
|
||||
description = "Web server system user";
|
||||
isSystemUser = true;
|
||||
group = mkForce "web";
|
||||
group = mkForce "${config.services.nginx.group}";
|
||||
};
|
||||
"btc" = {
|
||||
extraGroups = mkIf module.bitcoin.enable [
|
||||
"web"
|
||||
"${config.services.nginx.group}"
|
||||
];
|
||||
};
|
||||
"git" = {
|
||||
"${config.services.forgejo.user}" = {
|
||||
extraGroups = mkIf module.forgejo.enable [
|
||||
"web"
|
||||
"${config.services.nginx.group}"
|
||||
];
|
||||
};
|
||||
};
|
||||
groups = {
|
||||
"web" = {
|
||||
"${config.services.nginx.group}" = {
|
||||
members = [
|
||||
"nginx"
|
||||
"${config.services.nginx.user}"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
@ -56,6 +56,9 @@ in
|
|||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
user = "nginx";
|
||||
group = "web";
|
||||
|
||||
virtualHosts =
|
||||
let
|
||||
certPath = config.security.acme.certs."ramos.codes".directory;
|
||||
|
|
@ -66,7 +69,6 @@ in
|
|||
inherit sslCertificate sslCertificateKey;
|
||||
forceSSL = true;
|
||||
}) hosts;
|
||||
|
||||
in withSSL
|
||||
{
|
||||
"git.ramos.codes" = mkIf module.forgejo.enable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue