Third Party Service Providers

Subscription for Service Providers

Stash supports configurations managed by service providers, which can be updated regularly and display information such as remaining service traffic and expiration time.

Regular Configuration Update

Add the following comment to the first line of the configuration file. Stash will recognize the configuration as one managed by service providers, and it will automatically obtain the latest version from the specified URL at regular intervals. Currently, the interval for checking updates is 12 hours, but users can change this setting on the settings page.

#SUBSCRIBED https://proxy.service/stash/config

Display Service Information

Service providers can use HTTP response headers to provide service information, including upload traffic, download traffic, total traffic, and expiration time. The format is as follows:

Subscription-Userinfo: upload=%f; download=%f; total=%f; expire=%f

Stash will parse this information and display it on the app home page.

Stash will first use the service information in the URL for regularly updating configurations. If no URL is provided for regular updates, Stash will use the subscribe-url: field in the configuration file, which can be set on the visual editing page. Please note that the subscribe-url: field in the configuration file is only used for parsing service information and will not be used as the URL for regular updates.

# ...
# ...
subscribe-url: https://proxy.service/stash/config

Stash will use the HEAD method to obtain service information to reduce traffic consumption.