mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
added parameters for server-side YOURLS shortener call
This commit is contained in:
parent
b0f17f0a91
commit
3115cb8883
@ -227,3 +227,15 @@ dir = PATH "data"
|
|||||||
;bucket = "my-bucket"
|
;bucket = "my-bucket"
|
||||||
;accesskey = "access key id"
|
;accesskey = "access key id"
|
||||||
;secretkey = "secret access key"
|
;secretkey = "secret access key"
|
||||||
|
|
||||||
|
[yourls]
|
||||||
|
; don't mix this up with "urlshortener" config item:
|
||||||
|
; - when using a standard configuration, "urlshortener" will point to the YOURLS API, including access credentials, and will be part of the PrivateBin public web page (insecure!)
|
||||||
|
; - when using the parameters in this section ("signature" and "apiurl"), "urlshortener" will point to a fixed PrivateBin page ("$basepath/shortenviayourls.php") and
|
||||||
|
; that PHP will in turn call YOURLS server-side, using the URL from "apiurl" and using the "access signature" from "signature" parameter.
|
||||||
|
|
||||||
|
; (optional) the "signature" (access key) issued by YOURLS for the using account
|
||||||
|
; signature = ""
|
||||||
|
|
||||||
|
; (optional) the URL of the YOURLS API, called to shorten a PrivateBin URL
|
||||||
|
; apiurl = ""
|
||||||
|
@ -93,6 +93,10 @@ class Configuration
|
|||||||
'model_options' => array(
|
'model_options' => array(
|
||||||
'dir' => 'data',
|
'dir' => 'data',
|
||||||
),
|
),
|
||||||
|
'yourls' => array(
|
||||||
|
'signature' => '',
|
||||||
|
'apiurl' => '',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user