Skip to content

Commit

Permalink
Settings doc added
Browse files Browse the repository at this point in the history
  • Loading branch information
ymarcon committed Oct 2, 2020
1 parent ea066cb commit fe858ab
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 9 deletions.
15 changes: 8 additions & 7 deletions admin/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ HTTP Server Configuration

Agate server is a web application and as such, you need to specify on which ports the web server should listen to incoming requests.

=============== ==================
Property Description
=============== ==================
``server.port`` HTTP port number. Generally speaking this port should not be exposed to the web. Use the https port instead.
``server.host`` Web server host name.
``https.port`` HTTPS port number.
=============== ==================
========================= ==================
Property Description
========================= ==================
``server.port`` HTTP port number. Generally speaking this port should not be exposed to the web. Use the https port instead.
``server.host`` Web server host name.
``server.context-path`` The URL's context path, starting with a `/`. For instance when setting `/auth`, the base URL will be `https://example.org/auth`.
``https.port`` HTTPS port number.
========================= ==================

MongoDB Server Configuration
----------------------------
Expand Down
56 changes: 54 additions & 2 deletions admin/pub-configuration.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Public Configuration
====================
Public Pages Configuration
==========================

Starting from Agate 2.0, the administration user interface is distinct from the public pages, i.e. pages that are to be accessed by regular users. These pages are based on templates that can be customized, extended or overridden. The template engine that is used is `FreeMarker <https://freemarker.apache.org/>`_ which has a clean and powerful syntax.

Expand Down Expand Up @@ -37,6 +37,58 @@ Some template variables (date formats, branding, favicon etc.) are also defined
└── models
└── settings.ftl
**General settings**

.. list-table::
:widths: 10 90
:header-rows: 1

* - Variable
- Description
* - ``datetimeFormat``
- The format in which the date-time values should be rendered.
* - ``date``
- The format in which the date values should be rendered.
* - ``faviconPath``
- The location of the favicon, to be modified to match your own.
* - ``brandImageSrc``
- The location of your organization's logo.
* - ``brandImageClass``
- CSS classes to apply to the logo.
* - ``brandTextEnabled``
- Logical to show/hide a text aside of the logo.
* - ``brandTextClass``
- CSS classes to apply to the text aside of the logo.
* - ``adminLTEPath``
- The location of the `AdminLTE <https://adminlte.io/>`_ theme if this one has been modified (see the **Theme** section in this documentation).

**Home page settings**

.. list-table::
:widths: 10 90
:header-rows: 1

* - Variable
- Description
* - ``portalLink``
- The link applied to the logo. Default is the data portal (as specified in the Administration > General section), but it could also be the organization's main portal.

**User Profile page settings**

.. list-table::
:widths: 10 90
:header-rows: 1

* - Variable
- Description
* - ``showProfileRole``
- Logical to show/hide the role to which the user belongs.
* - ``showProfileGroups``
- Logical to show/hide the groups to which the user belongs.
* - ``showProfileApplications``
- Logical to show/hide the applications in which the user can sign.


Adding Pages
~~~~~~~~~~~~

Expand Down

0 comments on commit fe858ab

Please sign in to comment.