Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .docker/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ server {
gzip_buffers 16 8k;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

# Service Worker - must be before other .js rules, no caching, proper headers
location ^~ /sw.js {
default_type application/javascript;
add_header Service-Worker-Allowed "/";
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header X-Content-Type-Options "nosniff";
}

location ~* \.(jpg|jpeg|gif|png|webp|svg|ico|mp4|webm|mpeg|ttf|otf|woff|woff2|css|js|pdf)$ {
expires 1y;
add_header Cache-Control "public";
Expand Down Expand Up @@ -150,6 +158,14 @@ server {
gzip_buffers 16 8k;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

# Service Worker - must be before other .js rules, no caching, proper headers
location ^~ /sw.js {
default_type application/javascript;
add_header Service-Worker-Allowed "/";
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header X-Content-Type-Options "nosniff";
}

location ~* \.(jpg|jpeg|gif|png|webp|svg|ico|mp4|webm|mpeg|ttf|otf|woff|woff2|css|js|pdf)$ {
expires 1y;
add_header Cache-Control "public";
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This is a log of major user-visible changes in each phpMyFAQ release.
- added support for custom pages with WYSIWYG editor, SEO features, multi-language support, and search integration (Thorsten)
- added a translation adapter system with support for Google Cloud Translation, DeepL, Azure Translator, Amazon Translate, and LibreTranslate (Thorsten)
- added a simple chat for users (Thorsten)
- added push notifications via Web Push API (Thorsten)
- added support for Flesch readability tests (Thorsten)
- improved audit and activity log with comprehensive security event tracking (Thorsten)
- improved API errors with formatted RFC 7807 Problem Details JSON responses (Thorsten)
Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"ext-filter": "*",
"ext-gd": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-sodium": "*",
"ext-xml": "*",
"ext-xmlwriter": "*",
Expand All @@ -30,6 +32,7 @@
"endroid/qr-code": "^6.0.2",
"guzzlehttp/guzzle": "^7.5",
"league/commonmark": "^2.4",
"minishlink/web-push": "^9.0",
"monolog/monolog": "^3.3",
"myclabs/deep-copy": "~1.0",
"opensearch-project/opensearch-php": "^2.4",
Expand All @@ -39,8 +42,8 @@
"symfony/console": "^8.0",
"symfony/dependency-injection": "^8.0",
"symfony/dotenv": "^8.0",
"symfony/event-dispatcher": "^8.0",
"symfony/error-handler": "^8.0",
"symfony/event-dispatcher": "^8.0",
"symfony/html-sanitizer": "^8.0",
"symfony/http-client": "^8.0",
"symfony/http-foundation": "^8.0",
Expand All @@ -65,9 +68,10 @@
"zircote/swagger-php": "^6.0"
},
"suggest": {
"ext-bcmath": "*",
"ext-frankenphp": "*",
"ext-gmp": "*",
"ext-ldap": "*",
"ext-openssl": "*",
"ext-pdo": "*",
"ext-pgsql": "*",
"ext-sqlite3": "*",
Expand Down
Loading