Created
February 3, 2022 12:45
-
-
Save johanvanhelden/ad6622bb7745c5752d9ac63ff825ea35 to your computer and use it in GitHub Desktop.
paqt.dev.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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