Comments (6)
Since we are using a unique Nginx server blocks directory /var/www/sites/
we probably should ensure that any custom child config files are in a subdirectory there to avoid confusion.
For example like:
/var/www/sites/custom/
from slickstack.
I was going back on forth on this but I don't think custom
is a good sudirectory name. It sounds like maybe users could replace default server blocks with their own but that's not true, it's just for Nginx includes only.
So I'm proceeding with calling this /var/www/sites/includes/
After a few Google searches it looks like Roots Trellis uses a similar folder name nginx-includes
so that's good, at least some similar naming helps the community.
Ref: https://roots.io/trellis/docs/nginx-includes/
Still pending integration with SlickStack installer scripts and the main Nginx config file...
from slickstack.
See here:
## pending testing ##
# include /var/www/sites/includes/featurepolicy.conf;
For better security/control perhaps we can include specific child includes only as they become approved by the community instead of just a wildcard include...
https://github.com/littlebizzy/slickstack/blob/master/modules/nginx/nginx-conf.txt
from slickstack.
https://forum.nginx.org/read.php?11,256135
Hi, you may use the include directive with some glob() pattern tricks
For instance, replace this
include /path/to/something/nonexisting.conf
with
include /path/to/something/nonexisting[.]conf
the config parser won't complain if such file does not exist.
Not sure if still relevant.
from slickstack.
Related: https://scotthelme.co.uk/goodbye-feature-policy-and-hello-permissions-policy/
from slickstack.
New default Permissions Policy submodule called perms-policy.conf
https://github.com/littlebizzy/slickstack/blob/master/modules/nginx/includes/perms-policy-conf.txt
You can now customize this in SlickStack. Simply edit your own file under /var/www/sites-includes/perms-policy.conf
and SlickStack will validate that file during installation... if it's missing the string add_header Permissions-Policy
then our default submodule will be installed in that file location instead.
Ref: https://github.com/littlebizzy/slickstack/blob/master/bash/ss-install-nginx-config.txt
from slickstack.
Related Issues (20)
- SS_ADMINER_PUBLIC="false" does not work as intended. HOT 9
- Allow tuning of PHP8 JIT settings (opcache.jit options in php.ini) HOT 4
- Cloudflare real visitor IP support in Nginx config HOT 18
- Option to allow only Cloudflare IPs to connect to origin server HOT 2
- OpenVZ PHP-FPM "Unable to set priority for the master process: Permission denied" HOT 9
- Improve WP-Cron robustness for Multisite environments HOT 3
- Scanning WordPress core files to check if intact or broken HOT 4
- Redirect .php extension to WordPress if not exists HOT 4
- Why deny /wp-admin/load-styles.php and /wp-admin/load-scripts.php? HOT 3
- Nginx access log enabled by default but nginx.conf says not HOT 5
- Spam Content HOT 1
- Expose additional options for ss remote backup HOT 2
- support for local development ? HOT 1
- 403 Error on Static Assets with Query Strings on SlickStack.io HOT 1
- Implement Server-Wide Connection Limit to Mitigate Request Overload HOT 1
- ss-config had a build version update, but ss-update-config didn't HOT 4
- Can't get it to work out of the box? HOT 1
- 403 google bot error
- Consider optional cache warming script that can fire on cron schedules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slickstack.