Revision e3d14d4b

b/snf-common/synnefo/settings/default/admins.py
1
# -*- coding: utf-8 -*-
1
# Copyright 2013 GRNET S.A. All rights reserved.
2 2
#
3
# Admin names and email addresses
4
##################################
3
# Redistribution and use in source and binary forms, with or
4
# without modification, are permitted provided that the following
5
# conditions are met:
6
#
7
#   1. Redistributions of source code must retain the above
8
#      copyright notice, this list of conditions and the following
9
#      disclaimer.
10
#
11
#   2. Redistributions in binary form must reproduce the above
12
#      copyright notice, this list of conditions and the following
13
#      disclaimer in the documentation and/or other materials
14
#      provided with the distribution.
15
#
16
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
# POSSIBILITY OF SUCH DAMAGE.
28
#
29
# The views and conclusions contained in the software and
30
# documentation are those of the authors and should not be
31
# interpreted as representing official policies, either expressed
32
# or implied, of GRNET S.A.
33

  
34
from synnefo.settings.setup import Setting, Mandatory, Default
35

  
5 36

  
6
# List of people who receive application notifications, such as code error
7
# tracebacks. It is recommended to have at least one entry in this list.
8
ADMINS = (
9
    # ('Your Name', 'your_email@domain.com'),
37
ADMINS = Default(
38
    default_value=[],
39
    example_value=[
40
        ("John Smith", "john@example.synnefo.org"),
41
        ("Mary Smith", "mary@example.synnefo.org"),
42
    ],
43
    description="List of people who receive application notifications, such as "
44
        "code error tracebacks. It is recommended to have at least one entry "
45
        "in this list.",
46
    category="snf-common-admins",
47
    export=True,
10 48
)
11 49

  
12
# List of people to receive user feedback notifications.
13
HELPDESK = (
14
    # ('Your Name', 'your_email@domain.com'),
50
HELPDESK = Default(
51
    default_value=[],
52
    example_value=[
53
        ("John Smith", "john@example.synnefo.org"),
54
        ("Mary Smith", "mary@example.synnefo.org"),
55
    ],
56
    description="List of people who receive user feedback notifications. ",
57
    category="snf-common-admins",
58
    export=True,
15 59
)
16 60

  
17
# A list of people to receive email notifications on some application events
18
# (e.g. account creation/activation).
19
MANAGERS = (
20
    # ('Your Name', 'your_email@domain.com'),
61
MANAGERS = Default(
62
    default_value=[],
63
    example_value=[
64
        ("John Smith", "john@example.synnefo.org"),
65
        ("Mary Smith", "mary@example.synnefo.org"),
66
    ],
67
    description="List of people who receive email on some application events. "
68
        "(e.g.: account creation/activation).",
69
    category="snf-common-admins",
70
    export=True,
21 71
)
22 72

  
23
# Email configuration
24
EMAIL_HOST = "127.0.0.1"
25
EMAIL_HOST_USER = ""
26
EMAIL_HOST_PASSWORD = ""
27
EMAIL_SUBJECT_PREFIX = "[email-subject-prefix] "
28
DEFAULT_CHARSET = 'utf-8'
73
#
74
# Email server configuration
75
#
76

  
77
EMAIL_HOST = Default(
78
    default_value="127.0.0.1",
79
    description="IP or domain of the smtp server that will be used by Synnefo.",
80
    category="snf-common-admins",
81
    export=True,
82
)
29 83

  
30
# Address to use for outgoing emails
31
DEFAULT_FROM_EMAIL = "synnefo <no-reply@synnefo.org>"
84
EMAIL_PORT = Default(
85
    default_value=25,
86
    description="The smtp server's port to connect to.",
87
    category="snf-common-admins",
88
    export=True,
89
)
32 90

  
33
# Email where users can contact for support
34
CONTACT_EMAIL = "support@synnefo.org"
91
EMAIL_HOST_USER = Default(
92
    default_value="",
93
    example_value="JohnSmith",
94
    description="",
95
    category="snf-common-admins",
96
    export=True,
97
)
35 98

  
36
# Email address the emails sent by the service will come from
37
SERVER_EMAIL = "Synnefo cloud <cloud@synnefo.org>"
99
EMAIL_HOST_PASSWORD = Default(
100
    default_value="",
101
    description="The user's password.",
102
    category="snf-common-admins",
103
    export=True,
104
)
105

  
106
EMAIL_SUBJECT_PREFIX = Default(
107
    default_value="[synnefo] "
108
    description="Add this prefix to all email subjects sent by the service.",
109
    category="snf-common-admins",
110
    export=True,
111
)
112

  
113
DEFAULT_FROM_EMAIL = Default(
114
    default_value="synnefo <no-reply@synnefo.org>",
115
    example_value="service_name <no-reply@service_name.com>",
116
    description="Address to use for outgoing emails.",
117
    category="snf-common-admins",
118
    export=True,
119
)
120

  
121
CONTACT_EMAIL = Default(
122
    default_value="support@example.synnefo.org",
123
    example_value="support@service_name.com",
124
    description="Email where users can contact for support. Will appear in ",
125
        "emails and UI.",
126
    category="snf-common-admins",
127
    export=True,
128
)
129

  
130
SERVER_EMAIL = Default(
131
    default_value="Synnefo cloud <cloud@example.synnefo.org>",
132
    example_value="service_name <service_name@service_name.com>",
133
    description="Email address the emails sent by the service will come from.",
134
    category="snf-common-admins",
135
    export=True,
136
)
137

  
138
DEFAULT_CHARSET = Default(
139
    default_value="utf-8",
140
    description="The default charset.",
141
    export=False,
142
)

Also available in: Unified diff