<!-- -*- Mode: Xml -*- -->
<!-- This file is intentionnaly very basic. See http://ocsigen.org/ocsigenserver/manual/config
     a more elaborate one, as well as for comments on the various options -->
<!-- DO NOT MODIFY. This a generated file.
     Additional configurations sit in conf.d/ -->
<ocsigen>


  <server>

    <port>80</port>

    <logdir>/var/log/ocsigenserver</logdir>
    <datadir>/var/lib/ocsigenserver</datadir>
    <user>ocsigen</user>
    <group>ocsigen</group>
    <!-- <commandpipe>/var/run/ocsigenserver_command</commandpipe> -->
    <!-- <mimefile>/etc/ocsigenserver/mime.types</mimefile> -->

    <charset>utf-8</charset>

    <findlib path="/usr/lib/ocaml"/>

    <extension findlib-package="ocsigenserver.ext.staticmod"/>

    <!--
    <findlib path="/usr/lib/ocaml"/>
    <extension findlib-package="ocsigenserver.ext.ocsipersist-sqlite">
      <database file="/var/lib/ocsigenserver/ocsidb"/>
    </extension>
    -->

    <!--
    <findlib path="/usr/lib/ocaml"/>
    <extension findlib-package="ocsigenserver.ext.ocsipersist-pgsql">
      <!-- the database-tag and its attributes are all optional -->
      <database
        host="localhost"
        port="3000"
        user="ocsigen"
        password="pw"
        database="db"
        unix_domain_socket_dir="./udsd"
      />
    </extension>
    -->

    <!-- You may want to use DBM instead of SQLite (if compiled). -->
    <!--
    <extension findlib-package="ocsigenserver.ext.ocsipersist-dbm">
      <store dir="/var/lib/ocsigenserver"/>
      <ocsidbm name="/usr/lib/ocaml/ocsigenserver/extensions/ocsidbm"/>
    </extension>
    -->

    <!-- Inclusion of all external configuration files matching *.conf
         from the directory 'dir' (in alphabetical order): -->
    <extconf dir="/etc/ocsigenserver/conf.d" />

    <host charset="utf-8" hostfilter="*">

      <site path="ocsigenstuff" charset="utf-8">
        <static dir="/usr/share/ocsigenserver/ocsigenstuff" />
      </site>

      <static dir="/usr/share/ocsigenserver" />

    </host>

  </server>

</ocsigen>
