Create nginx.conf

This is untested, but *should* work, it's not a complicated config
This commit is contained in:
Belle Aerni 2023-01-08 17:45:50 -08:00
parent 930766b1a3
commit 073ee79eae

15
configs/nginx.conf Normal file
View file

@ -0,0 +1,15 @@
location ~ ^/Themes/[^/]+/Assets/ {
# If the requested file is an asset, serve it directly
if (-f $request_filename) {
break;
}
}
location /robots.txt {
# Allow access to the robots.txt file
try_files $uri =204;
}
location / {
try_files $uri $uri/ /index.php?$args;
}