Skip to content

Instantly share code, notes, and snippets.

@johanvanhelden
Created February 3, 2022 12:45
Show Gist options
  • Save johanvanhelden/ad6622bb7745c5752d9ac63ff825ea35 to your computer and use it in GitHub Desktop.
Save johanvanhelden/ad6622bb7745c5752d9ac63ff825ea35 to your computer and use it in GitHub Desktop.
paqt.dev.conf
server {
listen *:80;
server_name ~^(?<subdomain>.+\.)?(?<domain>.+).paqt.dev$;
set $baseRoot "/var/www/projects/${domain}";
set $publicFolder "";
if (-d "${baseRoot}/public_html") {
set $publicFolder "public_html";
}
if (-d "${baseRoot}/public") {
set $publicFolder "public";
}
root "${baseRoot}/${publicFolder}";
include conf.d/dockerhero/core/partials/logging.conf;
client_max_body_size 64m;
index index.html index.htm index.php;
include conf.d/dockerhero/core/partials/location.conf;
include conf.d/dockerhero/core/partials/php.conf;
sendfile off;
}
server {
listen *:443 ssl;
server_name ~^(?<subdomain>.+\.)?(?<domain>.+).paqt.dev$;
set $baseRoot "/var/www/projects/${domain}";
set $publicFolder "";
if (-d "${baseRoot}/public_html") {
set $publicFolder "public_html";
}
if (-d "${baseRoot}/public") {
set $publicFolder "public";
}
root "${baseRoot}/${publicFolder}";
include conf.d/dockerhero/core/partials/logging-ssl.conf;
include conf.d/dockerhero/core/partials/ssl.conf;
client_max_body_size 64m;
index index.html index.htm index.php;
include conf.d/dockerhero/core/partials/location.conf;
include conf.d/dockerhero/core/partials/php.conf;
sendfile off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment