Change API base URL to www.b0esche.cloud and revert host to www for public URLs
This commit is contained in:
@@ -8,7 +8,7 @@ class ApiClient {
|
||||
late final Dio _dio;
|
||||
final SessionBloc _sessionBloc;
|
||||
|
||||
ApiClient(this._sessionBloc, {String baseUrl = 'https://go.b0esche.cloud'}) {
|
||||
ApiClient(this._sessionBloc, {String baseUrl = 'https://www.b0esche.cloud'}) {
|
||||
_dio = Dio(
|
||||
BaseOptions(
|
||||
baseUrl: baseUrl,
|
||||
|
||||
@@ -2943,7 +2943,7 @@ func publicFileShareHandler(w http.ResponseWriter, r *http.Request, db *database
|
||||
} else if r.TLS == nil {
|
||||
scheme = "http"
|
||||
}
|
||||
host := r.Host
|
||||
host := "www.b0esche.cloud"
|
||||
downloadPath := fmt.Sprintf("%s://%s/public/share/%s/download?token=%s", scheme, host, token, url.QueryEscape(viewerToken))
|
||||
viewPath := fmt.Sprintf("%s://%s/public/share/%s/view?token=%s", scheme, host, token, url.QueryEscape(viewerToken))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user