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 heroscript_dumps #
fn heroscript_dumps(obj LightHttpdInstaller) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !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 new #
fn new(args ArgsGet) !&LightHttpdInstaller
fn play #
fn play(mut plbook PlayBook) !
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 = 'default'
}
///////FACTORY
struct ConfigurationArgs #
@[params]
struct ConfigurationArgs {
pub mut:
content string
path string
restart bool = true
}
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 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 heroscript_dumps
- fn heroscript_loads
- fn install
- fn install_configure_default
- fn new
- fn play
- fn restart
- fn start
- fn stop
- fn switch
- struct ArgsGet
- struct ConfigurationArgs
- struct InstallArgs
- struct LightHttpdInstaller
- struct StartArgs
- struct WebConfig