mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
try to setup gitea
This commit is contained in:
@@ -1 +1 @@
|
|||||||
I'm a super newbie who just posted my stuff here. Now maybe simple newbie
|
I'm a super newbie who just posted my stuff here. Now maybe about intermediate
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
../software/beets
|
../software/beets
|
||||||
./bentopdf.nix
|
./bentopdf.nix
|
||||||
./calibre-web.nix
|
./calibre-web.nix
|
||||||
|
./gitea.nix
|
||||||
./glances.nix
|
./glances.nix
|
||||||
./immich.nix
|
./immich.nix
|
||||||
./miniflux.nix
|
./miniflux.nix
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
xlib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
gitea = {
|
||||||
|
enable = true;
|
||||||
|
stateDir = "${xlib.dirs.services-mnt-folder}/gitea";
|
||||||
|
appName = "ZeroQ Gitea Service";
|
||||||
|
settings = {
|
||||||
|
server = {
|
||||||
|
DOMAIN = "gitea.local";
|
||||||
|
HTTP_PORT = 3000;
|
||||||
|
};
|
||||||
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"z ${config.services.gitea.stateDir} 0755 gitea gitea -"
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
inputs,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
|
||||||
xlib,
|
xlib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|||||||
@@ -18,14 +18,14 @@ in
|
|||||||
nextcloud-whiteboard-server = {
|
nextcloud-whiteboard-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
NEXTCLOUD_URL = "http://nextcloud-private.local";
|
NEXTCLOUD_URL = "http://nextcloud.private";
|
||||||
};
|
};
|
||||||
secrets = [ config.sops.secrets.nextcloud-whiteboard-jwt.path ];
|
secrets = [ config.sops.secrets.nextcloud-whiteboard-jwt.path ];
|
||||||
};
|
};
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud33;
|
package = pkgs.nextcloud33;
|
||||||
hostName = "nextcloud-private.local";
|
hostName = "nextcloud.private";
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
home = "${xlib.dirs.services-mnt-folder}/nextcloud";
|
home = "${xlib.dirs.services-mnt-folder}/nextcloud";
|
||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
@@ -44,14 +44,14 @@ in
|
|||||||
settings = {
|
settings = {
|
||||||
log_type = "file";
|
log_type = "file";
|
||||||
trusted_domains = [
|
trusted_domains = [
|
||||||
"nextcloud.zeroq.su"
|
|
||||||
"office.zeroq.su"
|
|
||||||
"office.local"
|
|
||||||
"100.64.0.0"
|
"100.64.0.0"
|
||||||
"192.168.1.20"
|
"192.168.1.20"
|
||||||
"localhost"
|
"localhost"
|
||||||
"nextcloud.local"
|
"nextcloud.local"
|
||||||
"nextcloud-private.local"
|
"nextcloud.private"
|
||||||
|
"nextcloud.zeroq.su"
|
||||||
|
"office.local"
|
||||||
|
"office.zeroq.su"
|
||||||
];
|
];
|
||||||
trusted_proxies = [
|
trusted_proxies = [
|
||||||
"100.64.1.0"
|
"100.64.1.0"
|
||||||
@@ -68,11 +68,13 @@ in
|
|||||||
# phpPackage = pkgs.php85;
|
# phpPackage = pkgs.php85;
|
||||||
extraApps = {
|
extraApps = {
|
||||||
inherit (config.services.nextcloud.package.packages.apps)
|
inherit (config.services.nextcloud.package.packages.apps)
|
||||||
|
# richdocuments
|
||||||
# gpoddersync
|
# gpoddersync
|
||||||
# integration_paperless
|
# integration_paperless
|
||||||
# memories
|
# memories
|
||||||
|
# news
|
||||||
# nextpod
|
# nextpod
|
||||||
onlyoffice
|
# notify_push
|
||||||
# phonetrack
|
# phonetrack
|
||||||
# repod
|
# repod
|
||||||
# sociallogin
|
# sociallogin
|
||||||
@@ -90,15 +92,13 @@ in
|
|||||||
impersonate
|
impersonate
|
||||||
mail
|
mail
|
||||||
music
|
music
|
||||||
tasks
|
|
||||||
# news
|
|
||||||
notes
|
notes
|
||||||
# notify_push
|
onlyoffice
|
||||||
polls
|
polls
|
||||||
previewgenerator
|
previewgenerator
|
||||||
# richdocuments
|
|
||||||
spreed
|
spreed
|
||||||
tables
|
tables
|
||||||
|
tasks
|
||||||
user_oidc
|
user_oidc
|
||||||
user_saml
|
user_saml
|
||||||
whiteboard
|
whiteboard
|
||||||
@@ -110,31 +110,31 @@ in
|
|||||||
# ;
|
# ;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
collabora-online = {
|
# collabora-online = {
|
||||||
enable = false;
|
# enable = false;
|
||||||
port = 9980;
|
# port = 9980;
|
||||||
# package = master.collabora-online;
|
# # package = master.collabora-online;
|
||||||
settings = {
|
# settings = {
|
||||||
server_name = "office.zeroq.su";
|
# server_name = "office.zeroq.su";
|
||||||
ssl = {
|
# ssl = {
|
||||||
enable = false;
|
# enable = false;
|
||||||
termination = true;
|
# termination = true;
|
||||||
ssl_verification = false;
|
# ssl_verification = false;
|
||||||
};
|
# };
|
||||||
net = {
|
# net = {
|
||||||
listen = "0.0.0.0";
|
# listen = "0.0.0.0";
|
||||||
post_allow.host = [
|
# post_allow.host = [
|
||||||
"0.0.0.0"
|
# "0.0.0.0"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
storage.wopi = {
|
# storage.wopi = {
|
||||||
"@allow" = true;
|
# "@allow" = true;
|
||||||
host = [
|
# host = [
|
||||||
"0.0.0.0/0"
|
# "0.0.0.0/0"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
onlyoffice = {
|
onlyoffice = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostname = "office.local";
|
hostname = "office.local";
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ in
|
|||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"nextcloud-private.local" = {
|
"nextcloud.private" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
listen = [
|
listen = [
|
||||||
@@ -89,6 +89,17 @@ in
|
|||||||
client_max_body_size 5G;
|
client_max_body_size 5G;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
"gitea.local" = {
|
||||||
|
forceSSL = false;
|
||||||
|
enableACME = false;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${server}:3000";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 5G;
|
||||||
|
'';
|
||||||
|
};
|
||||||
"n8n.local" = {
|
"n8n.local" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
@@ -96,6 +107,9 @@ in
|
|||||||
proxyPass = "http://${server}:5678";
|
proxyPass = "http://${server}:5678";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 5G;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
"kuma.local" = {
|
"kuma.local" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ in
|
|||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"agent.zeroq.su" = {
|
"git.zeroq.su" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
@@ -75,6 +75,14 @@ in
|
|||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# "agent.zeroq.su" = {
|
||||||
|
# forceSSL = true;
|
||||||
|
# enableACME = true;
|
||||||
|
# locations."/" = {
|
||||||
|
# proxyPass = "http://${server}:3000";
|
||||||
|
# proxyWebsockets = true;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
# "node-red.zeroq.su" = {
|
# "node-red.zeroq.su" = {
|
||||||
# forceSSL = true;
|
# forceSSL = true;
|
||||||
# enableACME = true;
|
# enableACME = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user