-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsettings.yml
174 lines (155 loc) · 4.93 KB
/
settings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# Copyright (c) 2006-2017, Puzzle ITC GmbH. This file is part of
# PuzzleTime and licensed under the Affero General Public License version 3
# or later. See the COPYING file at the top-level directory or at
# https://github.com/puzzle/puzzletime.
# ############################## #
# Global settings for puzzleTime #
# ############################## #
# Array of holidays with a fixed date. [day, month]
regular_holidays:
-
- 1
- 1
-
- 2
- 1
-
- 1
- 8
-
- 25
- 12
-
- 26
- 12
api_client:
user: <%= ENV['RAILS_API_USER'] || SecureRandom.hex %>
password: <%= ENV['RAILS_API_PASSWORD'] || SecureRandom.hex %>
# LDAP configuration
ldap:
connection:
host: <%= ENV['RAILS_LDAP_HOST'] %>
port: <%= ENV['RAILS_LDAP_PORT'] || 636 %>
<% if ENV['RAILS_LDAP_ENCRYPTION'] %>
encryption:
method: <%= ENV['RAILS_LDAP_ENCRYPTION'] %>
<% end %>
auth:
binduser: <%= ENV['RAILS_LDAP_BINDUSER'] %>
bindpassword: <%= ENV['RAILS_LDAP_BINDPASSWORD'] %>
root_cert: <%= ENV['RAILS_LDAP_ROOT_CERT'] %>
chain_cert: <%= ENV['RAILS_LDAP_CHAIN_CERT'] %>
user_dn: <%= ENV['RAILS_LDAP_USER_DN'] %>
external_dn: <%= ENV['RAILS_LDAP_EXTERNAL_DN'] %>
group: <%= ENV['RAILS_LDAP_GROUP_DN'] %>
# OmniAuth configuration
auth:
db:
active: <%= ENV['AUTH_DB_ACTIVE'] == 'true' %>
omniauth:
keycloakopenid:
label: 'Puzzle SSO'
active: <%= ENV['AUTH_KEYCLOAK_ACTIVE'] == 'true' %>
host: <%= ENV['AUTH_KEYCLOAK_HOST'] %>
realm: <%= ENV['AUTH_KEYCLOAK_REALM'] %>
client: <%= ENV['AUTH_KEYCLOAK_CLIENT'] %>
secret: <%= ENV['AUTH_KEYCLOAK_SECRET'] %>
fields:
ldapname: ['extra', 'raw_info', 'pitc', 'uid']
email: ['info', 'email']
saml:
active: <%= ENV['AUTH_SAML_ACTIVE'] == 'true' %>
assertion_consumer_service_url: <%= ENV['AUTH_SAML_ASSERTION_CONSUMER_SERVICE_URL'] %>
issuer: <%= ENV['AUTH_SAML_ISSUER'] %>
idp_sso_target_url: <%= ENV['AUTH_SAML_IDP_SSO_TARGET_URL'] %>
idp_slo_target_url: <%= ENV['AUTH_SAML_IDP_SLO_TARGET_URL'] %>
idp_slo_session_destroy: <%= ENV['AUTH_SAML_IDP_SLO_SESSION_DESTROY'] %>
slo_default_relay_state: <%= ENV['AUTH_SAML_SLO_DEFAULT_RELAY_STATE'] %>
idp_sso_target_url_runtime_params: <%= ENV['AUTH_SAML_IDP_SSO_TARGET_URL_RUNTIME_PARAMS'] %> # HASH
idp_cert: <%= ENV['AUTH_SAML_IDP_CERT'] %>
idp_cert_multi: <%= ENV['AUTH_SAML_IDP_CERT_MULTI'] %> # HASH
idp_cert_fingerprint: <%= ENV['AUTH_SAML_IDP_CERT_FINGERPRINT'] %>
name_identifier_format: <%= ENV['AUTH_SAML_NAME_IDENTIFIER_FORMAT'] %>
# Highrise configuration
highrise:
url: <%= ENV['RAILS_HIGHRISE_URL'] || 'https://highrisehq.com' %>
api_token: <%= ENV['RAILS_HIGHRISE_TOKEN'] %>
small_invoice:
url: https://api.smallinvoice.com
api_token: <%= ENV['RAILS_SMALL_INVOICE_TOKEN'] %>
request_rate: <%= ENV['RAILS_SMALL_INVOICE_REQUEST_RATE'] || 1 %>
constants:
account_id: 0 # none
esr: true
esr_singlepage: false
lsvplus: false
debit_direct: false
language: de
paypal: false
paypal_url:
vat_included: false
client_type: 1 # company
position_type_id: 1 # service
unit_id: 1 # hours
gender_id: 2 # female
# Default values
defaults:
report_type: absolute_day
start_hour: 8
country: <%= ENV['RAILS_PTIME_COUNTRY'] || 'CH' %>
vat: <%= ENV['RAILS_PTIME_VAT'] || 7.7 %>
currency: <%= ENV['RAILS_PTIME_CURRENCY'] || 'CHF' %>
# Month number the business year starts (e.g. 1 for 1.1.YYYY, 7 for 1.7.YYYY)
business_year_start_month: 7
payment_period: 30 # days
payment_periods:
- 30
- 45
- 60
work_items:
path_separator: '-'
employees:
# The initial vacation days are used to transfer the current vacation balance of each employee
# when introducing puzzle time. At some point, it will no be required to edit that value anymore.
initial_vacation_days_editable: <%= ENV['RAILS_PTIME_INITIAL_VACATION_DAYS_EDITABLE'].try(:downcase) == 'true' %>
clients:
# The client id of the company using this application
company_id: <%= ENV['RAILS_PTIME_COMPANY_ID'] || 4 %>
committed_worktimes:
notification:
days_at_end_of_month: 7
days_at_beginning_of_month: 3
expenses:
receipt:
max_pixel: 1800
quality: 75
help:
url: https://twiki.puzzle.ch/bin/view/PITC_PuzzleTime/Besonderheiten
meal_compensation:
active: <%= ENV['RAILS_PTIME_MEALTIME_COMPENSATION_ACTIVE'].try(:downcase) == 'true' %>
url: <%= ENV['RAILS_PTIME_MEALTIME_COMPENSATION_URL'] %>
reports:
# The minimum values for a given color in order reports.
orders:
billability:
green: 90
orange: 80
red: 0
average_rate:
green: 150
yellow: 130
orange: 100
red: 0
workload:
billability:
green: 95
orange: 90
red: 0
load:
green: 90
orange: 80
red: 0
worktime_balance:
lower_limit: 0
mailer:
from: <%= ENV['RAILS_PTIME_MAILER_FROM'] || 'no-reply@puzzle.ch' %>