Skip to main content
Every Lampac Ukraine module reads its settings from the shared init.conf file at startup. The configuration object is a standard JSON key-value pair whose key must be the module’s full LME.XXX identifier. All modules expose the same base set of fields; some modules add extra fields specific to their provider.
The key in init.conf must match the module name exactly, including the LME. prefix. For example, use "LME.Uaflix", not "Uaflix". Using the wrong key means the module will not pick up your settings.

Full example

The following block shows every supported field for LME.Uaflix. Other modules use the same structure — replace the key with the appropriate LME.XXX name.
init.conf
"LME.Uaflix": {
  "enable": true,
  "domain": "https://uafix.net",
  "displayname": "Uaflix",
  "login": null,
  "passwd": null,
  "cookie": null,
  "webcorshost": null,
  "streamproxy": false,
  "useproxy": false,
  "proxy": {
    "useAuth": true,
    "username": "FooBAR",
    "password": "Strong_password",
    "list": [
      "socks5://adress:port"
    ]
  },
  "displayindex": 1,
  "magic_apn": {
    "ashdi": "https://tut.im/proxy.php?url={encodeurl}"
  }
}

Field reference

enable
boolean
default:"true"
Controls whether the module is active. Set to false to disable the module entirely without removing its configuration block.
domain
string
The base URL of the upstream provider. Override this if the provider has changed domains or if you are using a mirror. Must include the scheme (https://).
displayname
string
The label shown for this source in the Lampac UI. Defaults to the module’s own name if omitted.
login
string
Account username for sources that require authentication. Set to null if the source does not use credentials.
passwd
string
Account password paired with login. Set to null when not needed.
Raw cookie string to send with requests. Useful when a provider issues a session cookie instead of — or in addition to — a username and password.
webcorshost
string
URL of a CORS proxy used during parsing requests. When set, the module routes its HTTP requests through this host instead of making direct connections. Works together with useproxy — see Proxy configuration for details.
streamproxy
boolean
default:"false"
When true, streaming URLs are routed through the built-in Lampac stream proxy. This applies only to stream traffic, not to parsing. Cannot be active at the same time as magic_apn — if APN is configured, streamproxy is automatically disabled.
useproxy
boolean
default:"false"
When true, network output during parsing is routed through the SOCKS5 proxy defined in the proxy object. Designed to work alongside webcorshost.
proxy
object
SOCKS5 proxy configuration used when useproxy is true. See Proxy configuration for full field documentation.
displayindex
number
default:"0"
Sort order of this source in the Lampac source list. Lower numbers appear first. Use 0 to let Lampac place the source in its default position.
magic_apn
object
Reverse-proxy template for Ashdi stream URLs. When the ashdi sub-field is set, stream links pointing to ashdi.vip are automatically rewritten through the given proxy template. See APN and Ashdi stream proxy for details.

Parameter compatibility rules

The following combinations are explicitly supported and do not conflict with each other:
  • webcorshost + useproxy: The CORS host handles the outbound parsing request; useproxy routes the underlying network connection through SOCKS5.
  • webcorshost + streamproxy: CORS applies to parsing only; the stream proxy applies to streaming only.
  • webcorshost + magic_apn: CORS applies to parsing; magic_apn rewrites Ashdi stream URLs on the client side.
The following combinations are mutually exclusive:
  • magic_apn and streamproxy: If APN is enabled, streamproxy is automatically set to false by the module at startup.

Build docs developers (and LLMs) love