1:- module(config_swish_network, []).    2:- use_module(library(settings)).    3:- use_module(library(http/http_host)).    4:- use_module(library(http/http_path)).    5
    6/* <module> Set HTTP access parameters
    7
    8The settings below are needed  for   actions  that  require a publically
    9accessible URL for the SWISH server if   this address cannot be resolved
   10automatically.
   11*/
   12
   13%:- set_setting_default(http:public_host,   localhost).
   14%:- set_setting_default(http:public_port,   3020).
   15%:- set_setting_default(http:public_scheme, http).
   16
   17/*
   18:- multifile http:location/3.
   19:- dynamic   http:location/3.
   20
   21% Rebase the server, such that the  home  is   not  on  /,  but (in this
   22% example) on /swish/ This is needed  if   you  want to access the swish
   23% server under a specific location using a  proxy. It *does not work* to
   24% proxy /my-swish-app to http://machine.running.swish/
   25
   26http:location(root, '/swish', []).
   27*/