Compare commits
2 Commits
dfe48379c5
...
c0c9af04d4
Author | SHA1 | Date | |
---|---|---|---|
c0c9af04d4 | |||
a85a16ff73 |
@ -311,15 +311,8 @@ ACTION=="add", SUBSYSTEM=="tty", \
|
|||||||
"hooks.m-labs.hk" = null;
|
"hooks.m-labs.hk" = null;
|
||||||
"forum.m-labs.hk" = null;
|
"forum.m-labs.hk" = null;
|
||||||
|
|
||||||
"fractalide.org" = null;
|
"openhardware.hk" = null;
|
||||||
"www.fractalide.org" = null;
|
"git.openhardware.hk" = null;
|
||||||
"hydra.fractalide.org" = null;
|
|
||||||
"git.fractalide.org" = null;
|
|
||||||
"puff.fractalide.org" = null;
|
|
||||||
"luceo-mainnet-rest.fractalide.org" = null;
|
|
||||||
"luceo-mainnet-grpc.fractalide.org" = null;
|
|
||||||
"luceo-testnet-rest.fractalide.org" = null;
|
|
||||||
"luceo-testnet-grpc.fractalide.org" = null;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -450,50 +443,13 @@ ACTION=="add", SUBSYSTEM=="tty", \
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
"hydra.fractalide.org" = {
|
"git.openhardware.hk" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
useACMEHost = "nixbld.m-labs.hk";
|
||||||
locations."/".proxyPass = "http://192.168.1.204:3000";
|
locations."/".proxyPass = "http://127.0.0.1:3002";
|
||||||
};
|
extraConfig = ''
|
||||||
"git.fractalide.org" = {
|
client_max_body_size 300M;
|
||||||
forceSSL = true;
|
'';
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
|
||||||
locations."/".proxyPass = "http://192.168.1.204:3001";
|
|
||||||
};
|
|
||||||
"fractalide.org" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
|
||||||
locations."/".proxyPass = "http://192.168.1.204:3002";
|
|
||||||
};
|
|
||||||
"www.fractalide.org" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
|
||||||
locations."/".proxyPass = "http://192.168.1.204:3002";
|
|
||||||
};
|
|
||||||
"puff.fractalide.org" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
|
||||||
locations."/".proxyPass = "http://192.168.1.204:3008";
|
|
||||||
};
|
|
||||||
"luceo-mainnet-rest.fractalide.org" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
|
||||||
locations."/".proxyPass = "http://192.168.1.204:3004";
|
|
||||||
};
|
|
||||||
"luceo-mainnet-grpc.fractalide.org" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
|
||||||
locations."/".proxyPass = "http://192.168.1.204:3005";
|
|
||||||
};
|
|
||||||
"luceo-testnet-rest.fractalide.org" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
|
||||||
locations."/".proxyPass = "http://192.168.1.204:3006";
|
|
||||||
};
|
|
||||||
"luceo-testnet-grpc.fractalide.org" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
|
||||||
locations."/".proxyPass = "http://192.168.1.204:3007";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -545,6 +501,27 @@ ACTION=="add", SUBSYSTEM=="tty", \
|
|||||||
"mail.nmigen.org" = null;
|
"mail.nmigen.org" = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
containers.openhardwarehk = {
|
||||||
|
autoStart = true;
|
||||||
|
config =
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.gitea = {
|
||||||
|
enable = true;
|
||||||
|
httpPort = 3002;
|
||||||
|
rootUrl = "https://git.openhardware.hk/";
|
||||||
|
appName = "Open Hardware HK";
|
||||||
|
cookieSecure = true;
|
||||||
|
disableRegistration = true;
|
||||||
|
extraConfig =
|
||||||
|
''
|
||||||
|
[attachment]
|
||||||
|
ALLOWED_TYPES = */*
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release with which your system is to be
|
# This value determines the NixOS release with which your system is to be
|
||||||
# compatible, in order to avoid breaking some software such as database
|
# compatible, in order to avoid breaking some software such as database
|
||||||
# servers. You should change this only after NixOS release notes say you
|
# servers. You should change this only after NixOS release notes say you
|
||||||
|
Loading…
Reference in New Issue
Block a user