Skip to content

Instantly share code, notes, and snippets.

@bueller
Created March 2, 2016 19:30
Show Gist options
  • Save bueller/a25b51ceebd48819729c to your computer and use it in GitHub Desktop.
Save bueller/a25b51ceebd48819729c to your computer and use it in GitHub Desktop.
---
replicated_api_version: "1.3.2"
name: My Counter App
version: "1.0"
release_notes: This is my killer on-prem version of my app
properties:
app_url: https://{{repl ConfigOption "hostname" }}
logo_url: ""
console_title: My App Console
cmds:
- name: get_my_public_ip_address
cmd: publicip
args: []
config:
- name: App
title: App Configuration
description: Set default values for my App to Use
items:
- name: public_hostname
title: public_hostname
type: text
value_cmd:
name: get_my_public_ip_address
value_at: 0
hidden: true
- name: optional_ip
title: optional_ip
type: text
- name: hostname
title: Hostname
type: text
value: '{{repl if eq (ConfigOption "optional_ip") ""}}{{repl ConfigOption "public_hostname"}}{{repl else}}{{repl ConfigOption "optional_ip"}}{{repl end}}'
required: true
readonly: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment