Switching to ssh port 22 for forgejo
This commit is contained in:
parent
86f7cc4bfc
commit
1a09ffa481
1 changed files with 4 additions and 9 deletions
|
|
@ -1,16 +1,10 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.services.forgejo;
|
cfg = config.services.forgejo;
|
||||||
srv = cfg.settings.server;
|
srv = cfg.settings.server;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.openssh = {
|
services.openssh.settings.AcceptEnv = "GIT_PROTOCOL";
|
||||||
ports = [
|
|
||||||
22
|
|
||||||
2222
|
|
||||||
];
|
|
||||||
settings.AcceptEnv = "GIT_PROTOCOL";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Fixing mailing issues
|
# Fixing mailing issues
|
||||||
systemd.services.forgejo.serviceConfig = {
|
systemd.services.forgejo.serviceConfig = {
|
||||||
|
|
@ -26,6 +20,7 @@ in
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# package = pkgs.forgejo;
|
||||||
|
|
||||||
# I don't understand why the fuck the user needs to be the same as the db's
|
# I don't understand why the fuck the user needs to be the same as the db's
|
||||||
# user = "biggoron";
|
# user = "biggoron";
|
||||||
|
|
@ -46,7 +41,7 @@ in
|
||||||
# You need to specify this to remove the port from URLs in the web UI.
|
# You need to specify this to remove the port from URLs in the web UI.
|
||||||
ROOT_URL = "https://${srv.DOMAIN}/";
|
ROOT_URL = "https://${srv.DOMAIN}/";
|
||||||
HTTP_PORT = 44303;
|
HTTP_PORT = 44303;
|
||||||
SSH_PORT = 2222;
|
SSH_PORT = 22;
|
||||||
};
|
};
|
||||||
|
|
||||||
# You can temporarily allow registration to create an admin user.
|
# You can temporarily allow registration to create an admin user.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue