Skip to content

rytsh/repeatit

Repository files navigation

repeatit

repeatit

License repeatit.io

Go template playground with wasm.

- switch html and text
- sprig, helm functions
- html view
- share template, input and settings

Download binary/static from releases or try docker image:

docker run -it --rm -p 8080:8080 ghcr.io/rytsh/repeatit:latest

Server Configuration

Add config file repeatit.[yaml|yml|json|toml] in root of the container or use environment variables.

Environment variables have prefix REPEATIT_ and use _ instead of ..
For example REPEATIT_PATH_PREFIX=/repeatit.

log_level: info
address: ":8080"
path_prefix: "" # for example "/repeatit"
encoding:
  disabled: false
  encoding: # empty list's default to ["gzip"]
    - gzip
cors:
  allow_origins:
    - "*" # for example "https://example.com"
  allow_methods:
    - GET
    - HEAD
    - PUT
    - POST
    - PATCH
    - DELETE
  allow_headers: []
  allow_credentials: false
  unsafe_wildcard_origin_with_allow_credentials: false
  expose_headers: []
  max_age: 0
Development

Frontend developed with sveltekit in prerender mode.

Build wasm file

make build

Run frontend

make build-front-install run

Make local test first and to try other things use ngrok like tools before tag new version.

Add new tag with starts v[0-9] to publish new version of website.