mirror of
https://github.com/MAGICGrants/truenas-apps.git
synced 2026-01-08 20:18:01 -05:00
add test app for middleware
This commit is contained in:
22
ix-dev/test/nginx/app.yaml
Normal file
22
ix-dev/test/nginx/app.yaml
Normal 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
|
||||
18
ix-dev/test/nginx/questions.yaml
Normal file
18
ix-dev/test/nginx/questions.yaml
Normal 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
|
||||
6
ix-dev/test/nginx/templates/docker-compose.yaml
Normal file
6
ix-dev/test/nginx/templates/docker-compose.yaml
Normal 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
|
||||
2
ix-dev/test/nginx/templates/library/base_v1_0_0/test.py
Normal file
2
ix-dev/test/nginx/templates/library/base_v1_0_0/test.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def container_name():
|
||||
return "nginx"
|
||||
@@ -0,0 +1 @@
|
||||
some_key: some_value
|
||||
2
library/test.py
Normal file
2
library/test.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def container_name():
|
||||
return "nginx"
|
||||
Reference in New Issue
Block a user