dev (#2)
Some checks failed
Deploy Production (admin.merchbay.app) / deploy (push) Failing after 36s

Co-authored-by: Frank John Begornia <frank.begornia@yahoo.com>
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2025-12-20 20:04:56 +00:00
parent 382e68769e
commit 4f2a435e2a
11 changed files with 666 additions and 25 deletions

View File

@@ -16,7 +16,10 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
//
// Force HTTPS when behind a proxy (Traefik)
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
\URL::forceSchema('https');
}
Storage::extend('sftp', function ($app, $config) {
return new Filesystem(new SftpAdapter($config));