Skip to content

Commit

Permalink
change tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrouth committed Dec 19, 2023
1 parent 5ed2acd commit b444c63
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ jobs:
cache-from: |
type=gha
build-args: |
BASE_TAG=latest
BASE_TAG=k8s
38 changes: 16 additions & 22 deletions api/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,23 @@
'user-registration-module' => \modules\userregistrationmodule\UserRegistrationModule::class,
],
'components' => [
'redis' => [
'class' => yii\redis\Connection::class,
'hostname' => App::env('REDIS_HOSTNAME') ?: 'localhost',
'port' => App::env('REDIS_PORT') ?: 6378,
'password' => App::env('REDIS_PASSWORD') ?: null,
'database' => App::env('REDIS_CRAFT_DB') ?: 0,
'useSSL' => App::env('REDIS_USE_SSL'),
'contextOptions' => [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
]
]
'cache' => [
'class' => yii\caching\MemCache::class,
'useMemcached' => App::env('ENABLE_MEMCACHED') ?: false,
'defaultDuration' => 86400,
'servers' => [
[
'host' => App::env('MEMCACHED_IP'),
'persistent' => true,
'port' => App::env('MEMCACHED_PORT') ?: '11211',
'retryInterval' => 15,
'status' => true,
'timeout' => 15,
'weight' => 1,
],
],
'keyPrefix' => App::env('APP_ID') ?: 'CraftCMS',
],
'cache' => function() {
$config = [
'class' => yii\redis\Cache::class,
'keyPrefix' => Craft::$app->id,
'defaultDuration' => Craft::$app->config->general->cacheDuration,
];

return Craft::createObject($config);
}
],
'bootstrap' => ['user-registration-module'],
];

0 comments on commit b444c63

Please sign in to comment.