1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-10 04:02:28 +01:00

Update env template

This commit is contained in:
Chaoyi Zha 2015-11-14 15:31:00 -05:00
parent 9c74d7c2a5
commit c688d95d7a
2 changed files with 63 additions and 17 deletions

View File

@ -1,29 +1,69 @@
APP_ENV=production
# Set to true if debugging
APP_DEBUG=false
APP_KEY=f*Myq9c3WIUAH%st1HsM^#rVJPB6Ppaq
# 32-character key (e.g 3EWBLwxTfh%*f&xRBqdGEIUVvn4%$Hfi)
APP_KEY={{$APP_KEY}}
# Your app's name (shown on interface)
APP_NAME={{$APP_NAME}}
# Protocol to access your app. e.g https://
APP_PROTOCOL={{$APP_PROTOCOL}}
# Your app's external address (e.g example.com)
APP_ADDRESS={{$APP_ADDRESS}}
# Your app's bootstrap stylesheet
# e.g https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/flatly/bootstrap.min.css
APP_STYLESHEET={{$APP_STYLESHEET}}
# Set to true to allow signups, false to disable (e.g true/false)
POLR_ALLOW_ACCT_CREATION={{$POLR_ALLOW_ACCT_CREATION}}
# Set to true to require activation by email (e.g true/false)
POLR_ACCT_ACTIVATION={{$POLR_ACCT_ACTIVATION}}
# Set to today's date (e.g November 3, 2015)
POLR_GENERATED_AT={{$POLR_GENERATED_AT}}
# Set to false after running setup script
# e.g true
POLR_SETUP_RAN={{$POLR_SETUP_RAN}}
DB_CONNECTION=mysql
# Set to your DB host (e.g localhost)
DB_HOST={{$DB_HOST}}
# DB port (e.g 3306)
DB_PORT={{$DB_PORT}}
# Set to your DB name (e.g polr)
DB_DATABASE={{$DB_DATABASE}}
# DB credentials
# e.g root
DB_USERNAME={{$DB_USERNAME}}
DB_PASSWORD={{$DB_PASSWORD}}
@if($MAIL_ENABLED)
MAIL_DRIVER=smtp
# e.g mailtrap.io
MAIL_HOST={{$MAIL_HOST}}
# e.g 2525
MAIL_PORT={{$MAIL_PORT}}
MAIL_USERNAME={{$MAIL_USERNAME}}
MAIL_PASSWORD={{$MAIL_PASSWORD}}
# e.g noreply@example.com
MAIL_FROM_ADDRESS={{$MAIL_FROM_ADDRESS}}
MAIL_FROM_NAME={{$MAIL_FROM_NAME}}
@endif
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=polrdev
DB_USERNAME=root
DB_PASSWORD=root
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=database
# MAIL_DRIVER=smtp
# MAIL_HOST=mailtrap.io
# MAIL_PORT=2525
# MAIL_USERNAME=null
# MAIL_PASSWORD=null
# MAIL_FROM_ADDRESS=null
# MAIL_FROM_NAME=null
# FILESYSTEM_DRIVER=local
# FILESYSTEM_CLOUD=s3
@ -36,3 +76,9 @@ QUEUE_DRIVER=database
# RACKSPACE_KEY=null
# RACKSPACE_CONTAINER=null
# RACKSPACE_REGION=null
# Do not touch
POLR_RELDATE=November 3, 2015
POLR_VERSION=2.0.0 Alpha
POLR_BASE=32
POLR_SECRET_BYTES=2

View File

@ -20,7 +20,7 @@
<li class="divider-vertical"></li>
@if (empty(session('username')))
@if (env('POLR_REGISTRATION') == true)
@if (env('POLR_ALLOW_ACCT_CREATION') == true)
<li><a href="{{route('signup')}}">Sign Up</a></li>
@endif
<li class="dropdown">