#--------------------------------------------------------------------
# TIPYMEDIA — production environment for ardaataarslan.pl
# Upload this file to the project root and RENAME it to  .env
#--------------------------------------------------------------------

CI_ENVIRONMENT = production

#--------------------------------------------------------------------
# APP
#--------------------------------------------------------------------

# The project folder sits in  public_html/tipymedia/  so the site is served from:
app.baseURL = 'https://ardaataarslan.pl/tipymedia/'

app.indexPage = ''
# Turn this on AFTER you've confirmed https:// works for the domain (cPanel AutoSSL).
# If SSL isn't ready yet, leaving it false avoids a redirect loop.
app.forceGlobalSecureRequests = false

# i18n
app.defaultLocale = 'pl'
app.negotiateLocale = true
app.supportedLocales = ['pl','en']
app.appTimezone = 'Europe/Warsaw'

#--------------------------------------------------------------------
# DATABASE  (cPanel MySQL)
#--------------------------------------------------------------------

database.default.hostname = localhost
database.default.database = microdiv_tipymedia
database.default.username = microdiv_tipymedia
database.default.password = 'Toggle05%.'
database.default.DBDriver = MySQLi
database.default.DBPrefix =
database.default.port = 3306
database.default.charset = utf8mb4
database.default.DBCollat = utf8mb4_general_ci

#--------------------------------------------------------------------
# ADMIN  (only used if you re-run the seeder; the live login comes
#         from the imported SQL — see DEPLOY-CPANEL.md)
#--------------------------------------------------------------------

admin.email    = 'admin@tipymedia.pl'
admin.password = 'CHANGE-ME-BEFORE-SEEDING'
admin.name     = 'Tipymedia Admin'

# Where contact-form submissions are e-mailed
contact.notifyEmail = 'hello@tipymedia.pl'

#--------------------------------------------------------------------
# EMAIL  (fill with your hosting SMTP so the contact form can notify)
#--------------------------------------------------------------------

email.protocol = 'smtp'
email.SMTPHost = 'mail.ardaataarslan.pl'
email.SMTPUser = 'hello@ardaataarslan.pl'
email.SMTPPass = ''
email.SMTPPort = 465
email.SMTPCrypto = 'ssl'
email.fromEmail = 'hello@ardaataarslan.pl'
email.fromName  = 'Tipymedia'

#--------------------------------------------------------------------
# SECURITY / SESSION
#--------------------------------------------------------------------

security.csrfProtection = 'cookie'
security.tokenName = 'csrf_token_tipy'
security.headerName = 'X-CSRF-TOKEN'
security.cookieName = 'csrf_cookie_tipy'
security.expires = 7200
security.regenerate = true

session.driver = 'CodeIgniter\Session\Handlers\FileHandler'
session.cookieName = 'tipy_session'
session.expiration = 7200
session.savePath = null

# set to true once the site runs on https
cookie.secure = false

#--------------------------------------------------------------------
# LOGGER  (2 = warnings+errors only, good for production)
#--------------------------------------------------------------------

logger.threshold = 2
