aoh

A tool for running Ansible playbooks with `curl <url> | python` commands
git clone https://git.ashermorgan.net/aoh/
Log | Files | Refs | README

commit b372bf7f654647d6adac60da2d5127c49d1394ff
parent 60c368b7a1149aa69983081d3e1627a64beb2562
Author: Asher Morgan <asher@ashermorgan.net>
Date:   Tue, 25 Aug 2026 18:52:42 -0700

Implement AOH_ORIGIN variable

Diffstat:
Maoh/server.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/aoh/server.py b/aoh/server.py @@ -30,7 +30,8 @@ def gc(): @app.get('/run') @app.get('/run.py') def install(): - return render_template('client.py', API_URL=request.host_url[:-1]) + api_url = os.getenv('AOH_ORIGIN', request.host_url[:-1]) + return render_template('client.py', API_URL=api_url) @app.post('/runners/')