Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
block="server {
listen ${3:-80};
listen ${4:-443} ssl http2;
server_name $1;
root \"$2\";
index index.html index.htm index.php;
@ivi-admin
ivi-admin / Kirby CMS nginx config for Laravel Forge
Last active May 13, 2018 19:00
Adds the removal of the trailing slash, Kirby config lines and panel redirection. Don't change the SSL certificate lines from what is auto-generated by Forge!
# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/www.domain.com/before/*;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.domain.com;
root /home/forge/www.domain.com/;
# FORGE SSL (DO NOT REMOVE!)