Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update default nodb skeleton config #516

Closed
wants to merge 1 commit into from

3 participants

@amiramix

Removed mod_admin since it doesn't work without mod_authentication anyway.
Removed mod_bootstrap since it isn't required by the default installation (the Zotonic status site uses its own copy of Boostrap library)
Added sign_key configuration option as without it Zotonic will try to generate a new key and store it in the database, which will fail since this skeleton doesn't use a DB access.

@kaos
Owner

LGTM :+1:

@arjan arjan referenced this pull request from a commit
@amiramix amiramix skel: Update default nodb skeleton config
Fixes #516
(cherry picked from commit 23eaee41bbe7532042b6af9075e6079de1fbf5d9)
438462c
@arjan arjan closed this in 567db17
@mawuli mawuli referenced this pull request from a commit in mawuli/zotonic
@amiramix amiramix skel: Update default nodb skeleton config
Fixes #516
9f4dcfc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 4, 2013
  1. @amiramix
This page is out of date. Refresh to see the latest.
Showing with 16 additions and 14 deletions.
  1. +16 −14 priv/skel/nodb/config.in
View
30 priv/skel/nodb/config.in
@@ -1,3 +1,4 @@
+%% -*- mode: erlang -*-
%% Zotonic site configuration for %%SITE%%.
[
%% This site is enabled or not.
@@ -14,26 +15,27 @@
{dbdatabase, none},
%% Installed modules, defined here as there is no database connection
- {modules, [
- %%SITE%%,
- mod_base,
- mod_admin,
- mod_bootstrap,
- mod_zotonic_status_vcs,
- mod_zotonic_tracer
- ]},
-
- %% Default config keys
+ {modules,
+ [%%SITE%%,
+ mod_base,
+ mod_zotonic_status_vcs,
+ mod_zotonic_tracer
+ ]},
+
+ %% Default config keys.
{site, [{language, "en"}]},
- %% Depcache settings. The maximum size in Mbs
+ %% Depcache settings. The maximum size in Mbs.
{depcache_memory_max, 100},
%% Password for the 'admin' user.
{admin_password, "%%ADMINPASSWORD%%"},
+ %% Key used for signing postbacks - this _must_ be a hard to guess key, otherwise your system is insecure.
+ %% Must be defined here because otherwise Zotonic will try to generate a new key and store it
+ %% in the database, which will fail since this skeleton assumes no DB access.
+ {sign_key, <<"--change-me--">>},
+
%% What skeleton site this site is based on; for installing the initial data.
- {
- skeleton, %%SKEL%%
- }
+ {skeleton, %%SKEL%%}
].
Something went wrong with that request. Please try again.