-
Notifications
You must be signed in to change notification settings - Fork 29
/
tracker.env
114 lines (99 loc) · 5.05 KB
/
tracker.env
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
# This is an example Tracker environment file. It assumes an installation
# called `production-01` at `/srv/abtech-tracker/production-01`. The systemd
# service will expect for this file to be installed at
# `/srv/abtech-tracker/production-01/tracker.env` when it is started with
# `systemctl start abtech-tracker@/srv/abtech-tracker/production-01`.
# Rails Environment
# =================
# If you are using this file, you probably want "production" or "staging." This
# setting changes which database and environment Rails runs in.
RAILS_ENV="production"
# Rails Relative URL Root
# =======================
# This is the subdirectory that Rails expects to run on via reverse proxy. If
# Rails should expect the application root to be "/tracker" instead of the web
# root, then this should be set to "/tracker" instead.
RAILS_RELATIVE_URL_ROOT="/"
# Rails Serve Static Files
# ========================
# If on staging or production and not using Nginx or Apache or Passenger to
# serve static files, have Puma/Rails do it for you if this variable is true.
RAILS_SERVE_STATIC_FILES="false"
# Action Mailer Default URL Host
# ==============================
# If on staging or production then this variable controls the hostname used to
# create links in emails.
ACTION_MAILER_DEFAULT_URL_HOST="tracker.abtech.org"
# Database URL
# ============
# This URL configures how Rails connects to the database. This will be merged
# with the settings in config/database.yml. It is simplest to run Rails as its
# own user on Linux which has UNIX socket authentication allowed to the
# database. For MySQL this would be
# mysql2://deploy-abtech-tracker@localhost/abtech_tracker_production?socket=/var/run/mysqld/mysqld.sock&pool=5
# See also: https://guides.rubyonrails.org/v6.0/configuring.html#configuring-a-database
# See also: https://guides.rubyonrails.org/v6.0/configuring.html#connection-preference
# See also: config/database.yml
DATABASE_URL="mysql2://deploy-abtech-tracker@localhost/abtech_tracker_production-01?socket=/var/run/mysqld/mysqld.sock&pool=5"
# Andrew SAML SP Certificates & Keys
# ==================================
# Locations of keys used for the service provider (SP) in SAML authentication
# with login.cmu.edu. The private key should be kept secret.
SAML_ANDREW_SP_CERTIFICATE_PATH="/srv/abtech-tracker/production-01/private/sp-cert.pem"
SAML_ANDREW_SP_PRIVATE_KEY_PATH="/srv/abtech-tracker/production-01/private/sp-key.pem"
# Andrew SAML SP Entity ID & Issuer
# =================================
# These URLS do not actually need to go to anything but must match what is
# configured at the login.cmu.edu IdP side. Typically the Entity ID uses the
# machine hostname and the Issuer uses the virtual host.
SAML_ANDREW_SP_ENTITY_ID="https://www-01.abtech.org/shibboleth"
SAML_ANDREW_SP_ISSUER="https://tracker.abtech.org/shibboleth"
# Andrew SAML SP ACS URL
# ======================
# This is the callback URL for Andrew SAML authentication. This changes where
# login.cmu.edu sends the callback. It does not change where Devise/OmniAuth
# exoect the callback, so that must be adjusted with a reverse proxy rewrite.
# This URL must match the URL configured at the login.cmu.edu IdP side. Uses
# the omniauth-saml default if not defined. This is not defined by default.
SAML_ANDREW_SP_CUSTOM_ACS_URL="https://tracker.abtech.org/Shibboleth.sso/SAML2/POST"
# rbenv Root
# ==========
# Location to put the rbenv Ruby installs. If following the deployment guide
# in README.md, then this is one folder up from the repo.
RBENV_ROOT="/srv/abtech-tracker/production-01/rbenv"
# Puma PID File
# =============
# Location to place the running PID file. This prevents multiple instances
# from accidentally being started simultaneously.
PIDFILE="/srv/abtech-tracker/production-01/pids/puma.pid"
# Puma Minimum and Maximum Threads
# ================================
# Minimum and maximum threads counts. Should match pool sizes of other
# components, such as ActiveRecord and mysql2 (see pool setting above).
# 5 is the default.
RAILS_MIN_THREADS="5"
RAILS_MAX_THREADS="5"
# Sphinx PID File
# ===============
# Location to place the Thinking Sphinx PID file. This prevents multiple
# instances from accidentally being started simultaneously. If you are using
# systemd and change this path, then be sure to override the service and socket
# to match.
SPHINX_PID="/srv/abtech-tracker/production-01/pids/searchd.pid"
# Sphinx Socket File
# ==================
# Location to place the Thinking Sphinx UNIX socket. This prevents multiple
# instances from accidentally being started simultaneously. If you are using
# systemd and change this path, then be sure to override the service and socket
# to match.
SPHINX_BIND="/srv/abtech-tracker/production-01/run/searchd.sock"
# Puma Debug Flag
# ===============
# This flag is helpful for debugging socket activation, etc.
# PUMA_DEBUG=1
# Corepack Env Location
# =====================
# This is the location for corepack, which it normally in the user's home
# folder at ~/.node/corepack, but that does not work for system users without
# home folders.
COREPACK_HOME="/srv/abtech-tracker/production-01/corepack"