forgejo migrate
This commit is contained in:
parent
ff322fd4a9
commit
5fd8c86ae6
1 changed files with 11 additions and 1 deletions
|
@ -300,6 +300,7 @@ in
|
|||
|
||||
forgejo = {
|
||||
enable = true;
|
||||
package = pkgs.forgejo;
|
||||
user = "gitea";
|
||||
group = "gitea";
|
||||
stateDir = "/var/lib/gitea";
|
||||
|
@ -312,7 +313,7 @@ in
|
|||
settings = {
|
||||
server = rec {
|
||||
HTTP_PORT = 3001;
|
||||
DOMAIN = "gitea.nyanlout.re;
|
||||
DOMAIN = "gitea.nyanlout.re";
|
||||
ROOT_URL = "https://${DOMAIN}/";
|
||||
};
|
||||
log.LEVEL = "Warn";
|
||||
|
@ -355,6 +356,15 @@ in
|
|||
|
||||
};
|
||||
|
||||
users.users.gitea = {
|
||||
home = config.services.forgejo.stateDir;
|
||||
useDefaultShell = true;
|
||||
group = "gitea";
|
||||
isSystemUser = true;
|
||||
};
|
||||
|
||||
users.groups.gitea = { };
|
||||
|
||||
systemd.services.nginx.serviceConfig = {
|
||||
ReadWritePaths = [
|
||||
"/var/www/hls"
|
||||
|
|
Loading…
Add table
Reference in a new issue