2024-10-16 21:04:26 +02:00
|
|
|
mainunit: nginx.service
|
|
|
|
|
mainunitfile: nginx.service.j2
|
|
|
|
|
templatefiles:
|
|
|
|
|
- src: nginx.conf.j2
|
|
|
|
|
dest: ~/nginx.conf
|
|
|
|
|
backuptype: none
|
|
|
|
|
configdefinition:
|
|
|
|
|
"$id": "nginx config"
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
|
description: Extra nginx configuration
|
|
|
|
|
type: object
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
properties:
|
|
|
|
|
certificatefile:
|
|
|
|
|
type: string
|
|
|
|
|
default: "~/ssl.cert"
|
|
|
|
|
description: The file used for the certificate. ATM this nginx only supports one certificate (use wildcards)
|
|
|
|
|
keyfile:
|
|
|
|
|
type: string
|
|
|
|
|
default: "~/ssl.key"
|
|
|
|
|
description: The key file used for the certificate. ATM this nginx only supports one certificate (use wildcards)
|
|
|
|
|
httpport:
|
|
|
|
|
type: integer
|
2025-08-15 23:11:03 +02:00
|
|
|
default: 80
|
|
|
|
|
minimum: 1
|
2024-10-16 21:04:26 +02:00
|
|
|
maximum: 65536
|
|
|
|
|
httpsport:
|
|
|
|
|
type: integer
|
2025-08-15 23:11:03 +02:00
|
|
|
default: 443
|
|
|
|
|
minimum: 1
|
2024-10-16 21:04:26 +02:00
|
|
|
maximum: 65536
|
|
|
|
|
listenhttpaddress4:
|
|
|
|
|
type: string
|
|
|
|
|
format: ipv4
|
|
|
|
|
default: 0.0.0.0
|
|
|
|
|
listenhttpsaddress4:
|
|
|
|
|
type: string
|
|
|
|
|
format: ipv4
|
|
|
|
|
default: 0.0.0.0
|
|
|
|
|
listenhttpaddress6:
|
|
|
|
|
type: string
|
|
|
|
|
format: ipv6
|
|
|
|
|
default: "::"
|
|
|
|
|
listenhttpsaddress6:
|
|
|
|
|
type: string
|
|
|
|
|
format: ipv6
|
|
|
|
|
default: "::"
|
2025-08-15 23:11:03 +02:00
|
|
|
ports:
|
|
|
|
|
- http
|
|
|
|
|
- https
|
|
|
|
|
exports:
|
|
|
|
|
firewall:
|
|
|
|
|
redirect:
|
|
|
|
|
- from: "{{ config.httpport }}"
|
|
|
|
|
to: "{{ ports.http }}"
|
|
|
|
|
version: ipv4
|
|
|
|
|
ip: "{{ config.listenhttpaddress4 }}"
|
|
|
|
|
- from: "{{ config.httpsport }}"
|
|
|
|
|
to: "{{ ports.https }}"
|
|
|
|
|
version: ipv4
|
|
|
|
|
ip: "{{ config.listenhttpaddress4 }}"
|
|
|
|
|
- from: "{{ config.httpport }}"
|
|
|
|
|
to: "{{ ports.http }}"
|
|
|
|
|
version: ipv6
|
|
|
|
|
ip: "{{ config.listenhttpaddress6 }}"
|
|
|
|
|
- from: "{{ config.httpsport }}"
|
|
|
|
|
to: "{{ ports.https }}"
|
|
|
|
|
version: ipv6
|
|
|
|
|
ip: "{{ config.listenhttpaddress6 }}"
|