Commit Graph
28 Commits
Author SHA1 Message Date
James Valleroy f178b74055 Split apache conf into 2 files, one for HTTP and one for SSL. 2014-03-24 07:19:57 -04:00
Nick Daly a09aa90145 Only redirect Plinth requests to HTTPS.
Previously, we redirected all requests to HTTPS.  Now, we redirect
only when the user tries to connect to the Plinth site.
2014-03-13 12:16:32 -05:00
James Valleroy 96f4430513 Remove includeSubDomains option from HSTS header. 2013-11-28 02:27:08 +00:00
James Valleroy 96310b4366 Use HSTS in apache conf. Fixes #47. 2013-11-28 00:52:18 +00:00
Nick Daly a0a9e96a29 Remove the /plinth/static location.
Otherwise, Apache 500s on the static files.
2013-11-17 16:22:21 -06:00
Nick Daly 827defed77 Allow Apache to serve Plinth's static files correctly.
When the */plinth/static* configuration is above */plinth*, it doesn't
work.  Move it below the */plinth* configuration so static files will
be served correctly.
2013-11-10 16:31:23 -06:00
Nick Daly b9b4e0a2ec Update Apache config for new static directory location.
It's now /plinth/static, not /static.
2013-10-31 19:53:56 -05:00
Nick Daly dc9331353f 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.
2013-10-27 16:56:32 -05:00
Nick Daly 421f20005e Plinth now hosted on (server)/plinth.
Plinth has been moved from plinth.(server).local to (server)/plinth.
*plinth.py* has been updated to take a new *--server_dir* argument,
which *share/init.d/plinth* now provides.  *plinth.sample.config* has
also been updated.

Actually, the whole package has been moved to a more Debian-friendly
configuration.  *share/apache2/plinth.conf* has been updated to
reflect the standard Debian directories.  It seems to make more sense
this way, as (other than FreedomMaker, which now uses this package
anyway) no other tools or derivatives use this system.  The
configuration can be patched out by other distributions easily enough.
2013-10-27 16:01:28 -05:00
James Valleroy f18d4a9e48 Change DocumentRoot in apache configuration, and add permissions for /static. 2013-10-20 09:04:31 -04:00
Nick Daly d84150b103 Fix DocumentRoot: Apache can serve Plinth's static files.
Without this change, Apache tries to serve the static files from
/dev/null/static, which never exists, so users will see all exciting
manner of errors.

I've assumed that the correct directory is the default directory that
Freedom-Maker installs Plinth to, currently ``/home/fbx/plinth``.
Other distributions will need to patch this out to their preferred
location, like ``/usr/share/plinth/static``.
2013-10-18 16:59:35 -05:00
Petter Reinholdtsen 5b9d3efcb0 Clean up init.d script.
Run as user/group plinth, not www-data.
Rewrite to use lsb init-functions for starting/stopping and output.
Use /bin/sh instead of bash to speed up the boot.
2013-10-07 22:15:06 +02:00
Nick Daly a9c853e5bd Merged with upstream. 2013-10-06 21:21:43 -05:00
Nick Daly 4f2cb54f32 Updated Apache config to be a little more flexible. 2013-10-06 21:00:06 -05:00
Petter Reinholdtsen 444365ec78 Rewrite plinth to use sudo and action scripts instead of exmachina for privileged accesss. 2013-09-23 09:37:24 +02:00
Nick Daly ff1d882657 Merged: Clean up init.d script, fix dependencies and indentation. 2013-09-08 15:26:31 -05:00
Nick Daly 354148ae69 Normalized whitespace. 2013-09-08 15:20:09 -05:00
Petter Reinholdtsen 2f702d4736 Clean up init.d script, fix dependencies and indentation. 2013-09-05 23:39:38 +02:00
bnewbold 9519ac9ebf use permissions for exmachina socket 2012-07-26 12:42:06 -07:00
bnewbold f1e764f2e5 integrate exmachina configuration management layer
- add exmachina code and test code
- modify plinth.py to listen for shared secret on stdin at start
  (if appropriate flag is set) and try to connect to exmachina daemon
- use exmachina to read and set /etc/hostname as a demo
- update plinth init.d script to start exmachina and share keys
- update docs with new deps and run instructions
2012-07-12 22:25:50 -04:00
James Vasile 992eff9e13 flesh out santiago and apache config a bit 2012-02-19 15:07:16 -05:00
James Vasile c9b09c5de2 tag init.d script 2012-02-19 15:07:16 -05:00
James Vasile 0801f05450 set documentroot to /dev/null 2012-02-19 15:07:15 -05:00
James Vasile 89da9bb389 plinth is in local 2012-02-19 15:07:15 -05:00
James Vasile 77647e907d subdomain for plinth 2012-02-19 15:07:15 -05:00
James Vasile 5ed705e875 redirect / and /plinth to /plinth/ 2012-02-19 15:07:15 -05:00
James Vasile ce4b594f65 daemonize 2012-02-19 15:07:14 -05:00
James Vasile d3a2fbc05e start to make proxy 2012-02-19 15:07:14 -05:00