We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7088cf commit 114dd5dCopy full SHA for 114dd5d
README.md
@@ -172,6 +172,7 @@ The following plugins are included:
172
173
- **Custom Header Plugin**: Adds custom headers to HTTP responses, configured per domain.
174
- **PHP Plugin**: Handles `.php` requests using PHP-FPM.
175
+- **AuthPlugin**: Protects routes with basic authentication.
176
177
### Enabling Plugins
178
@@ -190,6 +191,14 @@ the site's JSON configuration file. Example:
190
191
"PHPPlugin": {
192
"enable": true,
193
"fpm_addr": "/run/php/php8.2-fpm.sock"
194
+ },
195
+ "AuthPlugin": {
196
+ "protected_paths": ["/protected.html"],
197
+ "credentials": {
198
+ "admin": "password123",
199
+ "user": "userpass"
200
201
+ "session_expiration": 3600
202
}
203
204
0 commit comments