Closed dgw closed 8 years ago
I'll have to look at this. I run admin on https myself but had some problems with the api calls.
Well, got this working. Please take a look at https://github.com/ChrisWiegman/Better-YOURLS/tree/feature/allow_https and let me know what you think (it's always good to have a 2nd set of eyes on a requested feature).
This has been pushed in 2.1
It's easy for users to put in only the YOURLS domain, but API requests do use a secret token that should not be revealed in cleartext if it can be avoided. My YOURLS installation is available over HTTPS, and I'd like to eliminate insecure requests to it as much as possible.
I propose the following:
base_url
instead ofdomain
http://
to the option if it is missinghttps://
value if they wanthttps?:\/\/.+(\..+)+\.?(\/.*)*\/?
\ This pattern allows for YOURLS installations accessed over HTTP or HTTPS, at the domain root or in subdirectories