Revision 7d4bc8d8
b/docs/admin-guide.rst | ||
---|---|---|
1889 | 1889 |
|
1890 | 1890 |
The output of all email `*`.txt files will be already customized to contain your |
1891 | 1891 |
company and service names but you can further alter their content if you feel it |
1892 |
best fits your needs as simple as creasynnefo template.
|
|
1892 |
best fits your needs. |
|
1893 | 1893 |
|
1894 | 1894 |
In order to overwrite one or more email-templates you need to place your |
1895 | 1895 |
modified <email-file>.txt files respecting the following structure: |
... | ... | |
1975 | 1975 |
such as the activation link for activating one’s account and many more. |
1976 | 1976 |
These variables are contained into {{}} inside the templates. |
1977 | 1977 |
|
1978 |
**Astakos landing page** |
|
1979 |
|
|
1980 |
Astakos generates sensible default values used to display component- |
|
1981 |
specific details in several places across views (dashboard, cloudbar |
|
1982 |
etc.). One of these places is Astakos landing page where Synnefo components are |
|
1983 |
featured. |
|
1984 |
|
|
1985 |
In case those values doesn't seem to suit your deployment, Astakos allows |
|
1986 |
you to override any of them using ``ASTAKOS_COMPONENTS_META`` setting |
|
1987 |
in your ``/etc/synnefo/20-snf-astakos-app-settings.conf`` configuration file. |
|
1988 |
|
|
1989 |
So, for example if you want to add your own image for Astakos service and in the |
|
1990 |
same time hide Cyclades service from Astakos landing page you can |
|
1991 |
add the following line to your configuration file: |
|
1992 |
|
|
1993 |
.. code-block:: python |
|
1994 |
|
|
1995 |
ASTAKOS_COMPONENTS_META = { |
|
1996 |
'astakos': { |
|
1997 |
'dashboard': { |
|
1998 |
'icon': '<path-to-your-icon>' |
|
1999 |
} |
|
2000 |
}, |
|
2001 |
'cyclades': { |
|
2002 |
'dashboard': { |
|
2003 |
'show': False |
|
2004 |
} |
|
2005 |
} |
|
2006 |
} |
|
2007 |
|
|
2008 |
A complete list of available keys is shown below: |
|
2009 |
|
|
2010 |
.. code-block:: python |
|
2011 |
|
|
2012 |
'<component-name>' = { |
|
2013 |
'order': 1, |
|
2014 |
'dashboard': { |
|
2015 |
'order': 1, |
|
2016 |
'show': True, |
|
2017 |
'description': '<component-description>', |
|
2018 |
'icon': '<component-icon-path>', |
|
2019 |
}, |
|
2020 |
'cloudbar': { |
|
2021 |
'show': True |
|
2022 |
} |
|
2023 |
} |
|
2024 |
|
|
2025 |
|
|
2026 |
**403, 404 and 500 pages** |
|
2027 |
|
|
2028 |
Feel free to add your own 403 (HTTP Forbidden), 404 (Page not found) and |
|
2029 |
500 (server error) pages. |
|
2030 |
To override the default Synnefo error views, you must write and include any of |
|
2031 |
the files 403.html, 404.html and 500.html in your |
|
2032 |
**/etc/synnefo/templates/** directory. |
|
2033 |
|
|
2034 |
Their content is up to you, but you may use as guides the default error pages |
|
2035 |
found in: |
|
2036 |
|
|
2037 |
**/synnefo/snf-webproject/synnefo/webproject/templates/** |
|
2038 |
| 403.html |
|
2039 |
| 404.html |
|
2040 |
| 500.html |
|
2041 |
|
|
2042 |
|
|
1978 | 2043 |
|
1979 | 2044 |
.. RabbitMQ |
1980 | 2045 |
|
Also available in: Unified diff