feat: add PreferSecureProtocol in config.ini

This commit is contained in:
Macintxsh 2025-05-21 05:06:45 +03:00
parent b266a1a2df
commit d4d460a2a0
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2
4 changed files with 22 additions and 13 deletions

View file

@ -10,8 +10,12 @@ SourceUrl = git.mctaylors.ru
; Application name (e.g. Danbooru).
Name = Danbooru
; Host (without http://) used to access the application API.
Host = stashboo.ru
; (Optional) Public host name (without http://) for the “Open in [App.Name]” button.
Host = danbooru.donmai.us
; (Optional) Public hostname (without http://) for example, the “Open in [App.Name]” button.
; Useful if the bot is hosted on the same server as the application.
; If not set, [App.Host] will be used instead.
HostName =
HostName =
; Prefer the secure HTTPS protocol for generating links that use a public hostname.
; If True, bot will generate HTTPS links.
; If False, bot will generate HTTP links.
PreferSecureProtocol = True