add test app for middleware

This commit is contained in:
Stavros kois
2024-06-20 18:46:03 +03:00
parent eb03e6b35b
commit f366fec976
6 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
name: nginx
train: test
# lib_version: 1.0.0
version: 1.0.0
title: Nginx
description: Nginx description
containerVersion: 1.0.0
home: https://github.com/AdguardTeam/AdGuardHome
icon: https://media.sys.truenas.net/apps/adguard-home/icons/icon.svg
categories:
- networking
screenshots:
- https://media.sys.truenas.net/apps/adguard-home/screenshots/screenshot1.png
- https://media.sys.truenas.net/apps/adguard-home/screenshots/screenshot2.png
sources:
- https://github.com/AdguardTeam/AdGuardHome
- https://github.com/truenas/charts/tree/master/community/adguard-home
- https://hub.docker.com/r/adguard/adguardhome
keywords:
- dns
- adblock

View File

@@ -0,0 +1,18 @@
groups:
- name: Network Configuration
description: Configure Network for Nginx
questions:
- variable: network
label: ""
group: Network Configuration
schema:
type: dict
attrs:
- variable: web_port
label: WebUI Port
description: The port for Nginx WebUI
schema:
type: int
default: 8080
required: true

View File

@@ -0,0 +1,6 @@
x-values: {{ values.some_value | tojson }}
services:
{{ ix_lib.test.container_name() }}:
image: nginx
ports:
- {{ values.network.web_port }}:80

View File

@@ -0,0 +1,2 @@
def container_name():
return "nginx"

View File

@@ -0,0 +1 @@
some_key: some_value

2
library/test.py Normal file
View File

@@ -0,0 +1,2 @@
def container_name():
return "nginx"