forgejo config now supports ssh-based push
This commit is contained in:
parent
684708bbb6
commit
24de03cb06
2 changed files with 13 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
/etc/nixos/modules/nix.nix
|
/etc/nixos/modules/nix.nix
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,19 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
22
|
||||||
|
];
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
HTTP_PORT = 8888;
|
HTTP_PORT = 8888;
|
||||||
DISABLE_SSH = true;
|
|
||||||
ROOT_URL = "https://zospace.freeboxos.fr/forgejo";
|
ROOT_URL = "https://zospace.freeboxos.fr/forgejo";
|
||||||
|
START_SSH_SERVER = false;
|
||||||
|
DISABLE_SSH = false;
|
||||||
|
SSH_PORT = 22;
|
||||||
|
SSH_DOMAIN = "zospace.freeboxos.fr";
|
||||||
|
SSH_CREATE_AUTHORIZED_KEYS_FILE = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
service = {
|
service = {
|
||||||
|
|
@ -24,9 +32,9 @@
|
||||||
SHOW_USER_EMAIL = false;
|
SHOW_USER_EMAIL = false;
|
||||||
|
|
||||||
meta = ''
|
meta = ''
|
||||||
AUTHOR="Forgeato - beyond forging. We potato.";
|
AUTHOR="Forgeato - beyond forging. We potato."
|
||||||
DESCRIPTION="Potato. Refined.";
|
DESCRIPTION="Potato. Refined."
|
||||||
KEYWORDS="git,forge,forgejo,potato";
|
KEYWORDS="git,forge,forgejo,potato"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue