installers.web.lighttpd #
also supports letsencrypt through lego:
https://go-acme.github.io/lego/usage/cli/obtain-a-certificate/
Constants #
const version = '0.0.0'
fn configuration_get #
fn configuration_get() !string
fn configuration_set #
fn configuration_set(args_ ConfigurationArgs) !
fn get #
fn get(args_ ArgsGet) !&LightHttpdInstaller
fn install #
fn install(args InstallArgs) !
install lighttpd will return true if it was already installed
fn install_configure_default #
fn install_configure_default(config WebConfig) !
configure lighttpd as default webserver & start node, path, domain path e.g. /var/www domain e.g. www.myserver.com
fn play #
fn play(args_ PlayArgs) !
fn restart #
fn restart() !
fn start #
fn start(args StartArgs) !
start lighttpd
fn stop #
fn stop() !
fn switch #
fn switch(name string)
switch instance to be used for lighttpd
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string
}
///////FACTORY
struct ConfigurationArgs #
@[params]
struct ConfigurationArgs {
pub mut:
content string
path string
restart bool = true
}
struct DefaultConfigArgs #
@[params]
struct DefaultConfigArgs {
instance string = 'default'
}
helpers
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
struct LightHttpdInstaller #
@[heap]
struct LightHttpdInstaller {
pub mut:
name string = 'default'
}
THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
fn (LightHttpdInstaller) build #
fn (mut self LightHttpdInstaller) build() !
fn (LightHttpdInstaller) destroy #
fn (mut self LightHttpdInstaller) destroy() !
fn (LightHttpdInstaller) install #
fn (mut self LightHttpdInstaller) install(args InstallArgs) !
fn (LightHttpdInstaller) install_start #
fn (mut self LightHttpdInstaller) install_start(args InstallArgs) !
fn (LightHttpdInstaller) restart #
fn (mut self LightHttpdInstaller) restart() !
fn (LightHttpdInstaller) running #
fn (mut self LightHttpdInstaller) running() !bool
fn (LightHttpdInstaller) start #
fn (mut self LightHttpdInstaller) start() !
fn (LightHttpdInstaller) stop #
fn (mut self LightHttpdInstaller) stop() !
struct PlayArgs #
@[params]
struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}
struct StartArgs #
@[params]
struct StartArgs {
pub mut:
zinit bool
}
struct WebConfig #
@[params]
struct WebConfig {
pub mut:
path string = '/var/www'
}
- README
- Constants
- fn configuration_get
- fn configuration_set
- fn get
- fn install
- fn install_configure_default
- fn play
- fn restart
- fn start
- fn stop
- fn switch
- struct ArgsGet
- struct ConfigurationArgs
- struct DefaultConfigArgs
- struct InstallArgs
- struct LightHttpdInstaller
- struct PlayArgs
- struct StartArgs
- struct WebConfig