Skip to content

Instantly share code, notes, and snippets.

@SeyamMs
Last active April 24, 2025 11:44
Show Gist options
  • Save SeyamMs/b8702bd4682dd5032f99dfcac98d7fe7 to your computer and use it in GitHub Desktop.
Save SeyamMs/b8702bd4682dd5032f99dfcac98d7fe7 to your computer and use it in GitHub Desktop.
nginx server config for laravel herd site configuration file
file: benintrack.test.config
server {
listen 127.0.0.1:443 ssl;
...
location / {
rewrite ^ ".../resources/valet/server.php" last;
}
// COPY FROM HERE
location /app {
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header SERVER_PORT $server_port;
proxy_set_header REMOTE_ADDR $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
# This is for Windows (make sure you start secured reverb server)
proxy_pass https://localhost:8080;
}
// TO HERE
...
}
file: .env
REVERB_APP_ID=111111
REVERB_APP_KEY=somekey
REVERB_APP_SECRET=somesecret
REVERB_HOST="beintrack.test"
REVERB_PORT=443
REVERB_SCHEME=https
VITE_APP_NAME="${APP_NAME}"
VITE_REVERB_APP_KEY="${REVERB_APP_ID}"
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment