dev (#2)
Some checks failed
Deploy Production (admin.merchbay.app) / deploy (push) Failing after 36s
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user