0
1
Fork 0

Statics served from CDN

This commit is contained in:
Juan Ferrer 2020-01-23 12:47:30 +01:00
parent d91a40de3e
commit ada90236ee
4 changed files with 2 additions and 37 deletions

View File

@ -1,6 +1,3 @@
Alias /vn-image-data /var/lib/hedera-web/image-db/
Alias /vn-access /mnt/storage/vn-access/
<IfModule mod_mime.c> <IfModule mod_mime.c>
AddType text/x-yaml .yml AddType text/x-yaml .yml
</IfModule> </IfModule>
@ -24,29 +21,3 @@ Alias /vn-access /mnt/storage/vn-access/
</IfModule> </IfModule>
</FilesMatch> </FilesMatch>
</Directory> </Directory>
<Directory /var/lib/hedera-web/image-db/>
Options +Indexes +FollowSymLinks
Require all granted
</Directory>
<Directory /var/lib/hedera-web/image-db/*/*>
Options -Indexes -MultiViews +FollowSymLinks
AllowOverride FileInfo Options
Require all granted
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !\.[a-zA-Z0-9]+$
RewriteRule ^(.+)$ %{REQUEST_URI}.png [L]
</IfModule>
</Directory>
<Directory /mnt/storage/vn-access>
Require all granted
AllowOverride None
Options +Indexes
IndexIgnoreReset On
Header set X-Robots-Tag "noindex, nofollow"
</Directory>

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.98) stable; urgency=low hedera-web (1.406.99) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -12,12 +12,9 @@ services:
target: /etc/hedera-web/config.my.php target: /etc/hedera-web/config.my.php
- source: test - source: test
target: /etc/hedera-web/config.test.php target: /etc/hedera-web/config.test.php
- source: apache
target: /etc/apache2/conf-enabled/vn-share.conf
volumes: volumes:
- /mnt/storage/image:/var/lib/hedera-web/image-db - /mnt/storage/image:/var/lib/hedera-web/image-db
- /mnt/storage/vn-access:/mnt/storage/vn-access - /mnt/storage/vn-access:/mnt/storage/vn-access
- /mnt/storage/share:/mnt/storage/share
deploy: deploy:
replicas: 3 replicas: 3
cron: cron:
@ -35,6 +32,3 @@ configs:
test: test:
external: true external: true
name: ${PROJECT_NAME:?}_test name: ${PROJECT_NAME:?}_test
apache:
external: true
name: ${PROJECT_NAME:?}_apache

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "1.406.98", "version": "1.406.99",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {