Skip to content

installers.web.lighttpd #

also supports letsencrypt through lego:

https://go-acme.github.io/lego/usage/cli/obtain-a-certificate/

fn configuration_get #

fn configuration_get() !string

fn configuration_set #

fn configuration_set(args_ ConfigurationArgs) !

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 restart #

fn restart() !

fn start #

fn start(args StartArgs) !

start lighttpd

fn stop #

fn stop() !

struct ConfigurationArgs #

@[params]
struct ConfigurationArgs {
pub mut:
	content string
	path    string
	restart bool = true
}

struct InstallArgs #

@[params]
struct InstallArgs {
pub mut:
	reset       bool
	letsencrypt bool
}

struct StartArgs #

@[params]
struct StartArgs {
pub mut:
	zinit bool
}

struct WebConfig #

@[params]
struct WebConfig {
pub mut:
	path string = '/var/www'
}