Skip to content

Instantly share code, notes, and snippets.

View ali-awwad's full-sized avatar

Ali Awwad ali-awwad

View GitHub Profile
@ali-awwad
ali-awwad / laravel-on-azure-web-app-startup-command.sh
Last active March 29, 2024 21:02
Laravel On Azure Web Apps. Enabling Queues and Job Workers as well
# name this file as "startup.sh" and call it from "startup command" as "/home/startup.sh"
# check out my YouTube video "https://youtu.be/-PGhVFsOnGA"
cp /home/default /etc/nginx/sites-enabled/default
cp /home/php.ini /usr/local/etc/php/conf.d/php.ini
# install support for webp file conversion
apt-get update --allow-releaseinfo-change && apt-get install -y libfreetype6-dev \
libjpeg62-turbo-dev \
@ali-awwad
ali-awwad / web.config
Last active April 11, 2024 13:15
Web.config for Laravel applicartions that run on IIS 8 and later
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Headers" value="Origin, Content-Type, Authorization,X-Requested-With" />
<add name="Access-Control-Allow-Methods" value="GET" />
<add name="X-Download-Options" value="noopen" />
<add name="X-Frame-Options" value="DENY" />
<!-- if you need to allow same origin, comment above line and uncomment below line -->