nginx
No long description provided.
Installation
dagger install github.com/quartz-technology/daggerverse/nginx@v0.0.2
Entrypoint
Return Type
Nginx !
Arguments
Name | Type | Description |
---|---|---|
source | Directory ! | No description provided |
port | Integer | No description provided |
version | String | No description provided |
config | File | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/nginx@00f5931a9537bfaca73669e71fbde640aef22a0e call \
--source DIR_PATH
func (m *myModule) example(source *Directory) *Nginx {
return dag.
Nginx(source)
}
@function
def example(source: dagger.Directory, ) -> dag.Nginx:
return (
dag.nginx(source)
)
@func()
example(source: Directory, ): Nginx {
return dag
.nginx(source)
}
Types
Nginx 🔗
version() 🔗
Nginx version to use (default to 1.25.3)
Return Type
String !
Example
dagger -m github.com/quartz-technology/daggerverse/nginx@00f5931a9537bfaca73669e71fbde640aef22a0e call \
--source DIR_PATH version
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Nginx(source).
Version(ctx)
}
@function
async def example(source: dagger.Directory, ) -> str:
return await (
dag.nginx(source)
.version()
)
@func()
async example(source: Directory, ): Promise<string> {
return dag
.nginx(source)
.version()
}
source() 🔗
HTML source files
Return Type
Directory !
Example
dagger -m github.com/quartz-technology/daggerverse/nginx@00f5931a9537bfaca73669e71fbde640aef22a0e call \
--source DIR_PATH source
func (m *myModule) example(source *Directory) *Directory {
return dag.
Nginx(source).
Source()
}
@function
def example(source: dagger.Directory, ) -> dagger.Directory:
return (
dag.nginx(source)
.source()
)
@func()
example(source: Directory, ): Directory {
return dag
.nginx(source)
.source()
}
config() 🔗
Nginx configuration that overrides the default
Return Type
File !
Example
dagger -m github.com/quartz-technology/daggerverse/nginx@00f5931a9537bfaca73669e71fbde640aef22a0e call \
--source DIR_PATH config
func (m *myModule) example(source *Directory) *File {
return dag.
Nginx(source).
Config()
}
@function
def example(source: dagger.Directory, ) -> dagger.File:
return (
dag.nginx(source)
.config()
)
@func()
example(source: Directory, ): File {
return dag
.nginx(source)
.config()
}
port() 🔗
Port to expose the nginx on
Return Type
Integer !
Example
dagger -m github.com/quartz-technology/daggerverse/nginx@00f5931a9537bfaca73669e71fbde640aef22a0e call \
--source DIR_PATH port
func (m *myModule) example(ctx context.Context, source *Directory) int {
return dag.
Nginx(source).
Port(ctx)
}
@function
async def example(source: dagger.Directory, ) -> int:
return await (
dag.nginx(source)
.port()
)
@func()
async example(source: Directory, ): Promise<number> {
return dag
.nginx(source)
.port()
}
expose() 🔗
Expose the nginx server
Return Type
Service !
Example
dagger -m github.com/quartz-technology/daggerverse/nginx@00f5931a9537bfaca73669e71fbde640aef22a0e call \
--source DIR_PATH expose
func (m *myModule) example(source *Directory) *Service {
return dag.
Nginx(source).
Expose()
}
@function
def example(source: dagger.Directory, ) -> dagger.Service:
return (
dag.nginx(source)
.expose()
)
@func()
example(source: Directory, ): Service {
return dag
.nginx(source)
.expose()
}