
- Port 1337 appears to be blocked by VPS provider - Port 2222 is more commonly allowed for SSH services - Update both reverse-proxy and Forgejo configurations - This should resolve the SSH timeout issues
32 lines
699 B
Nix
32 lines
699 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
services.forgejo = {
|
|
enable = true;
|
|
user = "git"; # Explicitly set to 'git' user for SSH compatibility
|
|
};
|
|
|
|
services.forgejo.settings = {
|
|
DEFAULT = {
|
|
RUN_MODE = "prod";
|
|
};
|
|
service = {
|
|
DISABLE_REGISTRATION = true;
|
|
};
|
|
server = {
|
|
ROOT_URL = "https://git.geokkjer.eu";
|
|
SSH_DOMAIN = "git.geokkjer.eu";
|
|
SSH_PORT = 2222;
|
|
# Use system SSH server instead of built-in
|
|
DISABLE_SSH = false;
|
|
START_SSH_SERVER = false;
|
|
# Configure SSH user
|
|
SSH_USER = "git";
|
|
};
|
|
repository = {
|
|
ENABLE_PUSH_CREATE_USER = true;
|
|
};
|
|
other = {
|
|
SHOW_FOOTER_VERSION = true;
|
|
};
|
|
};
|
|
}
|