+
Skip to content

xmarkurion/cdn

Repository files navigation

Laravel Logo

To make this work you have to do the following steps:

To make this work you have to increase a limit of file upload size in php.ini file.

  • Go to the terminal and find file inside and add / change the following lines:

    • /etc/php/8.2/cli/conf.d# nano 99-custom.ini
      • There add those lines:
      • upload_max_filesize = 1024M
      • post_max_size = 1024M
  • you can check if it works by typing in the terminal:

    • php -i | grep upload_max_filesize
    • php -i | grep post_max_size
  • Make sure to add job as the system service

    • sudo nano /etc/systemd/system/queue.service
    • add the following lines:
      • [Unit]
      • Description=Laravel Queue Worker
      • After=network.target
      • [Service]
      • Restart=always
      • ExecStart=/usr/bin/php /var/www/html/artisan queue:work --tries=3
      • [Install]
      • WantedBy=multi-user.target

License

You can use this as you want, just don't forget to mention me as the author.

About

CDN for images /images/{id} /images/{id}/thumb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载