mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-17 07:44:41 +04:00
first xray
This commit is contained in:
parent
bbacfb100e
commit
c2106ca1a6
18 changed files with 482 additions and 29 deletions
45
nix/server/ports.nix
Normal file
45
nix/server/ports.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
# Server Port Usage Configuration
|
||||
# This file documents and centralizes all port assignments
|
||||
|
||||
options.kp2pml30.server.ports = {
|
||||
# Application Services
|
||||
backend = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 8001;
|
||||
description = "Backend service port (kp2pml30-moe-backend)";
|
||||
};
|
||||
|
||||
forgejo = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 8002;
|
||||
description = "Forgejo Git service port";
|
||||
};
|
||||
|
||||
coredns-https = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 8003;
|
||||
description = "CoreDNS HTTPS interface port";
|
||||
};
|
||||
|
||||
# Available ports for new services
|
||||
xray-main = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 8010;
|
||||
description = "Xray VLESS inbound port";
|
||||
};
|
||||
|
||||
xray-fallback = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 8011;
|
||||
description = "Xray fallback proxy port";
|
||||
};
|
||||
|
||||
xray-websocket = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 8012;
|
||||
description = "Xray websocket fallback port";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue