nginxlinuxpath

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRoot          = "/etc/nginx"
	RootConfigName       = "nginx.conf"
	ConfigAvailableName  = "config-available"
	ConfigEnabledName    = "config-enabled"
	SitesBackup          = "sites-backup"
	SitesAvailableName   = "sites-available"
	SitesEnabledName     = "sites-enabled"
	ExtraConfName        = "conf.d"
	ModulesAvailableName = "modules-available"
	ModulesEnabledName   = "modules-enabled"
)

Variables

View Source
var (
	DefaultDirStructure = GetFullDirStructure(
		true,
		DefaultRoot)
)

Functions

func GetConf

func GetConf() string

GetConf returns /etc/nginx/conf.d as a string

func GetFullDirStructure added in v0.1.2

func GetFullDirStructure(
	isNormalize bool,
	currentNginxRoot string,
) *knowndirstructure.NginxApacheDirectory

func GetMimeTypes

func GetMimeTypes() string

returns /etc/nginx/mime.types as a string

func GetModulesAvailable

func GetModulesAvailable() string

returns /etc/nginx/modules-available as a string

func GetModulesEnabled

func GetModulesEnabled() string

returns /etc/nginx/modules-enabled as a string

func GetNormalizeFullDirStructure added in v0.1.2

func GetNormalizeFullDirStructure(
	currentNginxRoot string,
) *knowndirstructure.NginxApacheDirectory

func GetSitesAvailable

func GetSitesAvailable() string

GetSitesAvailable returns /etc/nginx/sites-available as a string

func GetSitesEnabled

func GetSitesEnabled() string

GetSitesEnabled returns /etc/nginx/sites-enabled as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL