nginx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles Nginx proxy configuration for Swarm deployments

func NewManager

func NewManager(client *ssh.Client, projectName, environment string, verbose bool) *Manager

NewManager creates a new Nginx manager

func (*Manager) EnsureNginxService

func (m *Manager) EnsureNginxService(networkName string) error

EnsureNginxService ensures Nginx is running as a Swarm service

func (*Manager) RemoveServiceConfig

func (m *Manager) RemoveServiceConfig(serviceName string) error

RemoveServiceConfig removes Nginx configuration for a service

func (*Manager) SetupSSL

func (m *Manager) SetupSSL(domain, email string) error

SetupSSL sets up SSL certificates using Let's Encrypt

func (*Manager) UpdateServiceConfig

func (m *Manager) UpdateServiceConfig(serviceName string, service *config.ServiceConfig, fullServiceName string) error

UpdateServiceConfig updates Nginx configuration for a specific service

Jump to

Keyboard shortcuts

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