27 lines
581 B
Nix
27 lines
581 B
Nix
|
|
{ pkgs, ... }: {
|
||
|
|
services.mysql = {
|
||
|
|
enable = true;
|
||
|
|
package = pkgs.mysql84;
|
||
|
|
};
|
||
|
|
|
||
|
|
services.forgejo = {
|
||
|
|
enable = true;
|
||
|
|
database = {
|
||
|
|
type = "mysql";
|
||
|
|
socket = "/run/mysqld/mysqld.sock";
|
||
|
|
createDatabase = true;
|
||
|
|
};
|
||
|
|
settings.service.DISABLE_REGISTRATION = true;
|
||
|
|
settings.server = {
|
||
|
|
DOMAIN = "46.225.70.113";
|
||
|
|
ROOT_URL = "http://46.225.70.113:3000/";
|
||
|
|
HTTP_PORT = 3000;
|
||
|
|
SSH_PORT = 2222;
|
||
|
|
SSH_LISTEN_PORT = 2222;
|
||
|
|
START_SSH_SERVER = true;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
networking.firewall.allowedTCPPorts = [ 3000 2222 ];
|
||
|
|
}
|