File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 'key ' => $ app ->keys [0 ]->key
2222 ));
2323
24+ // Generate security file
25+ $ dest = Project::root (Project::DIRECTORY_NAME ) . '/ ' ;
26+ $ dest_file = $ dest . 'security.yaml ' ;
27+ @mkdir ($ dest , 0777 , true );
28+
29+ $ template = file_get_contents (__DIR__ . '/../../templates/security.yaml ' );
30+ $ template = preg_replace ('/{pepper}/ ' , sha1 (uniqid (true )), $ template );
31+ file_put_contents ($ dest_file , $ template );
32+
2433 if (!$ args ['json ' ]) {
2534 echo "Application: {$ app ->name }" . PHP_EOL ;
2635 echo "Keys: " . PHP_EOL ;
Original file line number Diff line number Diff line change 1+ # Application key-value configs
2+ email :
3+ from : no-reply@domain.com
Original file line number Diff line number Diff line change 11# Setup a pepper to generate the encrypted password.
2- auth_pepper : {{ pepper} }
2+ # auth_pepper: {pepper}
33
44# Whitelist of allowed host origins
55allowed_origins :
66 - *
77
8+ # collection permissions
89collections :
910 auths :
1011 allow : *
You can’t perform that action at this time.
0 commit comments