1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

Merge pull request #119 from YunoHost-Apps/testing

[fix] Various fixes for CI
This commit is contained in:
tituspijean 2019-09-15 16:23:37 +02:00 committed by GitHub
commit 1c7db753d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,4 @@
location ^~ __PATH__ { location ^~ __PATH__/ {
if ($scheme = http) { if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent; rewrite ^ https://$server_name$request_uri? permanent;
@ -23,25 +23,25 @@ location ^~ __PATH__ {
# Expire rules for static content # Expire rules for static content
location ~* \.(?:manifest|appcache|html?|xml|json)$ { location ~* \.(?:manifest|appcache|html?|xml|json)$ {
add_header Cache-Control "max-age=0"; more_set_headers "Cache-Control: max-age=0";
} }
location ~* \.(?:rss|atom)$ { location ~* \.(?:rss|atom)$ {
add_header Cache-Control "max-age=3600"; more_set_headers "Cache-Control: max-age=3600";
} }
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc)$ { location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc)$ {
add_header Cache-Control "max-age=2592000"; more_set_headers "Cache-Control: max-age=2592000";
access_log off; access_log off;
} }
location ~* \.(?:css|js)$ { location ~* \.(?:css|js)$ {
add_header Cache-Control "max-age=31536000"; more_set_headers "Cache-Control: max-age=31536000";
access_log off; access_log off;
} }
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ { location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
add_header Cache-Control "max-age=2592000"; more_set_headers "Cache-Control: max-age=2592000";
access_log off; access_log off;
} }

View file

@ -20,7 +20,6 @@
"multi_instance": true, "multi_instance": true,
"services": [ "services": [
"nginx", "nginx",
"php7.3-fpm",
"mysql" "mysql"
], ],
"arguments": { "arguments": {
@ -74,6 +73,10 @@
"fr": "Est-ce une application publique ?", "fr": "Est-ce une application publique ?",
"de": "Ist es eine öffentliche Applikation ?" "de": "Ist es eine öffentliche Applikation ?"
}, },
"help": {
"en": "If public, it will be open to all visitors like any forum. If private, only the YunoHost server users can access it.",
"fr": "Si public, le forum sera accessible à tous, comme pour tout forum. Si privé, seuls les utilisateurs du serveur YunoHost pourront y accéder."
},
"default": true "default": true
}, },
{ {