Nginx
High-performance web server and reverse proxy for serving static content and load balancing.
webproxyserver
Usage
import { defineConfig } from 'dockup/config';
import { nginx } from 'dockup/services';
export default defineConfig({
services: [
nginx()
],
});
Metadata
This service automatically exposes metadata.
dockup metadata
HTTP URL: http://localhost:80
HTTP endpoint
HTTPS URL: https://localhost:443
HTTPS endpoint (requires SSL certificates)
The above are the metadata generated when using this service with the default options.
Options
Prop | Type | Default |
---|---|---|
port? | number | 80 |
httpsPort? | number | 443 |
configPath? | string | undefined |
webRoot? | string | undefined |
sslCertsPath? | string | undefined |
autoIndex? | boolean | false |
serverName? | string | "localhost" |
name? | string | - |
image? | string | - |
extend? | ((service: ContainerService) => ContainerService) | - |