|
| 1 | +# Configuration |
| 2 | + |
| 3 | +## About |
| 4 | + |
| 5 | +All system settings are stored in the .env file, this guide will go through any of the settings, and explain how they are configured. |
| 6 | + |
| 7 | +Please keep in mind that settings are cached, and any time you update them, you should update the cache: |
| 8 | +`php artisan optimize` |
| 9 | + |
| 10 | +## Config |
| 11 | + |
| 12 | +### APP_NAME |
| 13 | + |
| 14 | +The name of the site, can be any string. Should be in single quotes if there is a space in it. |
| 15 | + |
| 16 | +### APP_ENV |
| 17 | + |
| 18 | +Should not change, laravel default setting. |
| 19 | + |
| 20 | +### APP_KEY |
| 21 | + |
| 22 | +Generated using |
| 23 | +`php artisan key:generate` |
| 24 | + |
| 25 | +Should not be changed manually, but must not be null. |
| 26 | + |
| 27 | +### APP_DEBUG |
| 28 | + |
| 29 | +Enhanced debugging. Recommended to be false for live environments. |
| 30 | + |
| 31 | +### APP_URL |
| 32 | + |
| 33 | +The full URL of the site, for example https://360nohope.co.uk |
| 34 | + |
| 35 | +### APP_DEMO_MODE |
| 36 | + |
| 37 | +Enabled demo mode, which does a nightly data refresh. This should almost always be false. |
| 38 | + |
| 39 | +### AUTO_APPROVE_USERS |
| 40 | + |
| 41 | +A boolean value, this controls if users need approval to sign in, we recommend setting to 0. |
| 42 | + |
| 43 | +### LOG_CHANNEL |
| 44 | + |
| 45 | +Configures how keyshare logs it's config. Can be configured to any [laravel supported logging driver](https://laravel.com/docs/6.x/logging) |
| 46 | + |
| 47 | +### CACHE_DRIVER |
| 48 | + |
| 49 | +This should always be Redis. We recommend installing redis in our install guide. |
| 50 | + |
| 51 | +### QUEUE_CONNECTION=redis |
| 52 | + |
| 53 | +Not currently in use |
| 54 | + |
| 55 | +### BROADCAST_DRIVER |
| 56 | + |
| 57 | +Not currently in use |
| 58 | + |
| 59 | +### SESSION_DRIVER |
| 60 | + |
| 61 | +How sessions will be stored, we support all [laravel supported session drivers](https://laravel.com/docs/6.x/session). Redis is recommended. |
| 62 | + |
| 63 | +### SESSION_LIFETIME |
| 64 | + |
| 65 | +How long sessions last, recommended is 120 minutes. |
| 66 | + |
| 67 | +### TELESCOPE_ENABLED |
| 68 | + |
| 69 | +Enables laravel telescope, should be false for Live. |
| 70 | + |
| 71 | +### STEAM_LOGIN |
| 72 | + |
| 73 | +This enables steam login, however it requires the steam URLs and key to be set. |
| 74 | + |
| 75 | +### STEAM_KEY |
| 76 | + |
| 77 | +You need to generate a [steam api key](https://steamcommunity.com/dev/apikey) and insert the key here. |
| 78 | + |
| 79 | +### STEAM_SECRET |
| 80 | + |
| 81 | +The same as the Steam Key. |
| 82 | + |
| 83 | +### STEAM_REDIRECT_URI |
| 84 | + |
| 85 | +This is the URL the site redirects to. it should be the full site name, with /login/steam/callback on the end. For example: |
| 86 | +`STEAM_REDIRECT_URI=https://360nohope.co.uk/login/steam/callback` |
| 87 | + |
| 88 | +## Database Connections |
| 89 | + |
| 90 | +We support any [laravel supported DB driver](https://laravel.com/docs/6.x/database). We recommend MySQL. |
| 91 | + |
| 92 | +### DB_CONNECTION |
| 93 | + |
| 94 | +Driver Name, as in the above laravel guide. |
| 95 | + |
| 96 | +### DB_HOST |
| 97 | + |
| 98 | +DB Server Name |
| 99 | + |
| 100 | +### DB_PORT |
| 101 | + |
| 102 | +DB Port |
| 103 | + |
| 104 | +### DB_DATABASE |
| 105 | + |
| 106 | +Database Name |
| 107 | + |
| 108 | +### DB_USERNAME |
| 109 | + |
| 110 | +Database username |
| 111 | + |
| 112 | +### DB_PASSWORD |
| 113 | + |
| 114 | +Database password |
| 115 | + |
| 116 | +## Redis |
| 117 | + |
| 118 | +This will not need changing if you have installed locally, but you will need to update the following strings if you are hosting redis elsewhere: |
| 119 | + |
| 120 | +### REDIS_HOST |
| 121 | + |
| 122 | +Hostname of redis server |
| 123 | + |
| 124 | +### REDIS_PASSWORD |
| 125 | + |
| 126 | +Redis server password, if configured |
| 127 | + |
| 128 | +### REDIS_PORT |
| 129 | + |
| 130 | +Port for redis |
| 131 | + |
| 132 | +## Email |
| 133 | + |
| 134 | +In order to use password resets, you should set up an SMTP server, the following details should be provided from your email provider. You can set up [Gmail](https://stackoverflow.com/questions/32515245/how-to-to-send-mail-using-gmail-in-laravel-5-1) |
| 135 | + |
| 136 | +### MAIL_DRIVER |
| 137 | + |
| 138 | +Should always be SMTP for live |
| 139 | + |
| 140 | +### MAIL_HOST |
| 141 | + |
| 142 | +Provided by your SMTP provider |
| 143 | + |
| 144 | +### MAIL_PORT |
| 145 | + |
| 146 | +Provided by your SMTP provider |
| 147 | + |
| 148 | +### MAIL_USERNAME |
| 149 | + |
| 150 | +Provided by your SMTP provider |
| 151 | + |
| 152 | +### MAIL_PASSWORD |
| 153 | + |
| 154 | +Provided by your SMTP provider |
| 155 | + |
| 156 | +### MAIL_ENCRYPTION |
| 157 | + |
| 158 | +Provided by your SMTP provider |
| 159 | + |
| 160 | +### MAIL_FROM_NAME |
| 161 | + |
| 162 | +The name of the sender when emails are received (Normally the site name) |
0 commit comments