Class ServerBuilder

Constructors

Methods

  • Add environment vars with which the server will start

    Parameters

    • key: string
    • value: string

    Returns ServerBuilder

    environment This will use the default environment if you set the egg via .setEgg(egg: PanelEgg)
    
  • Enable the OOM killer This will kill the server if it exceeds the memory limit This may cause the server processes to exit unexpectedly This CAN cause to data corruption

    Parameters

    • enabled: boolean

    Returns ServerBuilder

    false
    
  • Parameters

    • cpuLimit: number

      in %

    Returns ServerBuilder

    0
    
  • Set the environment vars with which the server will start

    Parameters

    • environment: {
          [environment: string]: string;
      }
      • [environment: string]: string

    Returns ServerBuilder

    environment This will use the default environment if you set the egg via .setEgg(egg: PanelEgg)
    
  • Set the startup command with which the server will start This can include environment vars via {{ VAR_NAME }}

    Parameters

    • startup: string

    Returns ServerBuilder

    startup This will use the default startup command if you set the egg via .setEgg(egg: PanelEgg)