Laravel-Backpack / basset

Better asset helpers for Laravel apps.
MIT License
151 stars 10 forks source link

Basset behind HTTP Proxy #111

Closed sebiecker closed 4 months ago

sebiecker commented 4 months ago

Hi!

I would like to use Basset in a DMZ without active Internet access.

Please provide options to configure a explizit HTTP Proxy for the HTTP Client in fetchContent function.

karandatwani92 commented 4 months ago

Hey @sebiecker

You would require the internet once to copy assets from CDNs to your local server. The command php artisan basset:cache will go through all your blade files, and internalize everything possible.

Notes:

Find more info here

sebiecker commented 4 months ago

@karandatwani92 but that not possible without the proxy settings.. The Server can only reach the internet via HTTP Proxy

pxpm commented 4 months ago

Hey @sebiecker

You can upload the files basset:cache generates on your filesystem (by default in: storage\app\public\basset), including the .basset file, the cache map of the internalized assets.

Don't forget to do the storage link in case you haven't done it already, it's in basset docs.

That way in your internet free zone you will always use the assets you internalized previously in your local machine.

Let me know if that helps.

Cheers