Skip to content

Commit acefb3d

Browse files
committed
Add descriptions for some env vars
1 parent 48374f0 commit acefb3d

File tree

2 files changed

+42
-31
lines changed

2 files changed

+42
-31
lines changed

app.json

+39-31
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@
77
],
88
"website": "https://snipeitapp.com/",
99
"repository": "https://github.com/snipe/snipe-it",
10-
"logo": "https://snipeitapp.com/img/logos/snipe-it-logo-xs.png",
10+
"logo": "https://pbs.twimg.com/profile_images/976748875733020672/K-HnZCCK_400x400.jpg",
1111
"success_url": "/setup",
1212
"env": {
1313
"APP_ENV": {
14-
"description": "Symfony environment mode.",
14+
"description": "Symfony environment mode. Unless developing the application, this should be production.",
1515
"value": "production"
1616
},
17+
"APP_DEBUG": {
18+
"description": "Symfony debug mode. Unless developing the application or actively debugging a problem, this should be set to false.",
19+
"value": "false"
20+
},
1721
"APP_KEY": {
18-
"description": "A secret key for verifying the integrity of signed cookies. (https://coderstoolbox.online/toolbox/generate-symfony-secret)",
22+
"description": "A secret key for verifying the integrity of signed cookies. (See either https://snipe-it.readme.io/docs/install-dependencies or generate at https://coderstoolbox.online/toolbox/generate-symfony-secret)",
1923
"value": ""
2024
},
2125
"APP_URL": {
@@ -30,104 +34,108 @@
3034
"description": "Which language do you want to use for your install? (https://snipe-it.readme.io/docs/configuration#setting-a-language)",
3135
"value": "en"
3236
},
37+
"MAX_RESULTS": {
38+
"description": "The maximum number of search results that can be returned at one time.",
39+
"value": "500"
40+
},
3341
"MAIL_DRIVER": {
34-
"description": "",
42+
"description": "Mail driver - Generally SMTP on Heroku - https://snipe-it.readme.io/docs/configuration#required-outgoing-mail-settings",
3543
"value": "smtp"
3644
},
3745
"MAIL_HOST": {
38-
"description": "",
46+
"description": "SMTP Server Hostname",
3947
"value": "smtp.your.domain.name"
4048
},
4149
"MAIL_PORT": {
42-
"description": "",
50+
"description": "SMTP Server Port",
4351
"value": "25"
4452
},
4553
"MAIL_USERNAME": {
46-
"description": "",
54+
"description": "SMTP Server Username",
4755
"value": "YOURUSERNAME"
4856
},
4957
"MAIL_PASSWORD": {
50-
"description": "",
58+
"description": "SMTP Server Password",
5159
"value": "YOURPASSWORD"
5260
},
5361
"MAIL_ENCRYPTION": {
54-
"description": "",
62+
"description": "Encryption protocol for email sending.",
5563
"value": "null"
5664
},
5765
"MAIL_FROM_ADDR": {
58-
"description": "",
59-
"value": "your@domain.name"
66+
"description": "Email from address",
67+
"value": "no-reply@domain.name"
6068
},
6169
"MAIL_FROM_NAME": {
62-
"description": "",
70+
"description": "Email from Name",
6371
"value": "Snipe-IT"
6472
},
6573
"MAIL_REPLYTO_ADDR": {
66-
"description": "",
74+
"description": "Email Reply-To address",
6775
"value": "[email protected]"
6876
},
6977
"MAIL_REPLYTO_NAME": {
70-
"description": "",
78+
"description": "Email Reply-To Name",
7179
"value": "Snipe-IT"
7280
},
7381
"MAIL_AUTO_EMBED": {
74-
"description": "",
82+
"description": "Whether or not to embed images in emails (via CID or base64) versus linking to them.",
7583
"value": "true"
7684
},
7785
"MAIL_AUTO_EMBED_METHOD": {
78-
"description": "",
86+
"description": "Method that should be used for attaching inline images.",
7987
"value": "base64"
8088
},
8189
"SESSION_LIFETIME": {
82-
"description": "",
90+
"description": "Specify the time in minutes that the session should remain valid.",
8391
"value": "12000"
8492
},
8593
"EXPIRE_ON_CLOSE": {
86-
"description": "",
94+
"description": "Specify whether or not the logged in session should be expired when the user closes their browser window.",
8795
"value": "false"
8896
},
8997
"ENCRYPT": {
90-
"description": "",
91-
"value": "false"
98+
"description": "Specify whether you wish to use encrypted cookies for your Snipe-IT sessions.",
99+
"value": "true"
92100
},
93101
"COOKIE_NAME": {
94-
"description": "",
102+
"description": "The name of the cookie set by Snipe-IT for session management.",
95103
"value": "snipeit_session"
96104
},
97105
"COOKIE_DOMAIN": {
98-
"description": "",
106+
"description": "The domain name that the session cookie should be sent for.",
99107
"value": "your-app-name.herokuapp.com"
100108
},
101109
"SECURE_COOKIES": {
102-
"description": "",
103-
"value": "false"
110+
"description": "Should cookies only be sent for HTTPS connections? Generally true on Heroku.",
111+
"value": "true"
104112
},
105113
"LOGIN_MAX_ATTEMPTS": {
106-
"description": "",
114+
"description": "The maximum number of failed attempts allowed before the user is throttled.",
107115
"value": "5"
108116
},
109117
"LOGIN_LOCKOUT_DURATION": {
110-
"description": "",
118+
"description": "The duration (in seconds) that the user should be blocked from attempting to authenticate again.",
111119
"value": "60"
112120
},
113121
"APP_LOG": {
114122
"description": "Driver to send logs to. (errorlog for stderr)",
115123
"value": "errorlog"
116124
},
117125
"ALLOW_IFRAMING": {
118-
"description": "",
126+
"description": "Allow Snipe-IT to be loaded using an iFrame?",
119127
"value": "false"
120128
},
121129
"GOOGLE_MAPS_API": {
122-
"description": "",
123-
"value": ""
130+
"description": "Include your Google Maps API key here if you'd like Snipe-IT to load maps from Google on your locations and suppliers pages.",
131+
"required": false
124132
},
125133
"BACKUP_ENV": {
126-
"description": "",
134+
"description": "Set this to true if you wish to backup your .env file in your Admin > Backups process.",
127135
"value": "true"
128136
},
129137
"ENABLE_HSTS": {
130-
"description": "",
138+
"description": "Whether or not to send the HSTS security policy header.",
131139
"value": "false"
132140
}
133141
},

heroku/startup.php

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ function set_db($uri) {
2020
file_put_contents('./.env', 'DB_USERNAME=' . parse_url($uri, PHP_URL_USER). PHP_EOL, FILE_APPEND);
2121
file_put_contents('./.env', 'DB_PASSWORD=' . parse_url($uri, PHP_URL_PASS). PHP_EOL, FILE_APPEND);
2222
file_put_contents('./.env', 'DB_DATABASE=' . ltrim(parse_url($uri, PHP_URL_PATH), '/'). PHP_EOL, FILE_APPEND);
23+
file_put_contents('./.env', 'DB_PREFIX=' . 'null' . PHP_EOL, FILE_APPEND);
24+
file_put_contents('./.env', 'DB_DUMP_PATH=' . 'null' . PHP_EOL, FILE_APPEND);
25+
2326
}
2427

2528
// If Heroku Redis is setup, let's get it working.

0 commit comments

Comments
 (0)