{% blocktrans %}The administrator of this system has disabled persistent storage.{% endblocktrans %}
+@@ -31,7 +32,7 @@
/notify/
{{BASE_URL}}/notify/
<?php
// The URL
- $url = 'http://localhost:8000/notify/';
+ $url = '{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/';
//Initiate cURL.
$ch = curl_init($url);
@@ -155,6 +156,7 @@
{% blocktrans %}Those wishing to use the persistent store may do so. This section is a set it and forget it type @@ -176,7 +178,7 @@
/add/{% trans "KEY" %}
{{BASE_URL}}/add/{% trans "KEY" %}
# {% blocktrans %}Load a simple TEXT config entry KEY abc123{% endblocktrans %}
curl -X POST -d '{"format":"text","config":"devops=mailto://user:pass@gmail.com"}' \
-H "Content-Type: application/json" \
- http://localhost:8000/add/abc123/
+ {{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/add/abc123/
@@ -254,7 +256,7 @@
}<?php
// The URL if the key was abc123
- $url = 'http://localhost:8000/add/abc123';
+ $url = '{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/add/abc123';
//Initiate cURL.
$ch = curl_init($url);
@@ -300,7 +302,7 @@
/del/{% trans "KEY" %}
{{BASE_URL}}/del/{% trans "KEY" %}
# {% blocktrans %}Remove previously loaded configuration associated with the KEY of abc123{% endblocktrans %}
- curl -X POST http://localhost:8000/del/abc123
+ curl -X POST {{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/del/abc123
<?php
// The URL if the key was abc123
- $url = 'http://localhost:8000/del/abc123';
+ $url = '{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/del/abc123';
//Initiate cURL.
$ch = curl_init($url);
@@ -352,16 +354,16 @@
/get/{% trans "KEY" %}
{{BASE_URL}}/get/{% trans "KEY" %}
# Use Apprise to retrieve your configuration:
- apprise --body="test message" --config={{ request.scheme }}://{{request.META.HTTP_HOST}}{{ request.path }}{% trans "KEY" %}
+ apprise --body="test message" --config={{ request.scheme }}://{{request.META.HTTP_HOST}}{{BASE_URL}}/get/{% trans "KEY" %}
/notify/{% trans "KEY" %}
{{BASE_URL}}/notify/{% trans "KEY" %}