mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Remove local JavaScript; Add /static permissions.
Changes: 1. Remove local minified copies of html5shiv, modernizr, and jquery. 2. Add symlinks to system copies of minified modernizr and jquery. These are installed by libjs-modernizr and libjs-jquery. 3. In apache configuration, change DocumentRoot from plinth/static to just plinth. 4. Add permissions for /static location.
This commit is contained in:
commit
dc9331353f
7 files changed
+22
-32
No files matched your search
@@ -1,12 +1,13 @@
|
||||
<VirtualHost *:80>
|
||||
|
||||
## Shared options.
|
||||
DocumentRoot /dev/null
|
||||
## Force SSL
|
||||
RewriteEngine on
|
||||
ReWriteCond %{SERVER_PORT} !^443$
|
||||
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
|
||||
|
||||
## Shared options.
|
||||
DocumentRoot /dev/null
|
||||
|
||||
## Use this rule to hang plinth off of plinth.(servername)
|
||||
# ServerName plinth
|
||||
# ServerAlias plinth.*
|
||||
@@ -15,15 +16,24 @@
|
||||
|
||||
<VirtualHost *:443>
|
||||
|
||||
## Shared options.
|
||||
ProxyPreserveHost on
|
||||
DocumentRoot /usr/share/plinth/static
|
||||
ProxyPass /static !
|
||||
## Enable SSL
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
|
||||
## Shared options.
|
||||
ProxyPreserveHost on
|
||||
DocumentRoot /usr/share/plinth
|
||||
ProxyPass /static !
|
||||
<Location /static>
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
Allow from 10.0.0.0/8
|
||||
Allow from 172.16.0.0/12
|
||||
Allow from 192.168.0.0/16
|
||||
Require all granted
|
||||
</Location>
|
||||
|
||||
## Use this rule to hang plinth off of plinth.(servername)
|
||||
# ServerName plinth
|
||||
# ServerAlias plinth.*
|
||||
|
||||
Reference in new issue
Block a user