Tags
documentation, guide, getting started
Image used for Nanocl get started tutorial.
That just return headers and environnement variables for all incomming requests.
Example:
Create a new Statefile get_started.yml
:
Kind: Deployment
ApiVersion: v0.11
Namespace: global
# See all options:
# https://docs.next-hat.com/references/nanocl/resource
Resources:
- Name: get-started.com
Kind: ProxyRule
Version: v0.8
Data:
Rules:
- Domain: get-started.com
Network: Internal
Locations:
- Path: /
Target:
Key: get-started.global.c
Port: 9000
# See all options:
# https://docs.next-hat.com/references/nanocl/cargo
Cargoes:
- Name: get-started
Container:
Image: ghcr.io/nxthat/nanocl-get-started:latest
Env:
- APP=GET_STARTED
Execute the Statefile :
nanocl state apply -s get_started.yml