View source with raw comments or as raw
   1:- module(conf_pengines, []).
   2:- if(exists_source(library(pengines))).
   3:- use_module(api(pengines)).
   4
   5/** <module> Configure Pengines access
   6
   7Provide access to ClioPatria's RDF store using pengines.
   8
   9@see http://www.swi-prolog.org/pldoc/package/pengines.html
  10@see http://cliopatria.swi-prolog.org/packs/swish
  11*/
  12
  13% Maximum time a pengine may execute
  14% :- set_setting_default(pengines:time_limit, 300).
  15:- set_setting_default(pengines:slave_limit, 301).
  16
  17% Only allow connections from localhost.  Use `[*]` to allow access from
  18% anywhere.  Note that the cpack `swish` also depends on this setting.
  19:- set_setting_default(pengines:allow_from, ['*']).
  20
  21% Deny hosts/networks.  Deny rules are applied after allow rules, i.e.,
  22% you are granted access if you are allowed and not denied.
  23% :- set_setting_default(pengines:deny_from,  []).
  24
  25% DO NOT REMOVE THIS :- endif.
  26:- endif.