move to oauth login [skip ci]
This commit is contained in:
parent
a28393fde1
commit
ed3c1ff7c1
3 changed files with 35 additions and 21 deletions
|
@ -39,3 +39,15 @@ $config['plugins'] = array('archive', 'managesieve', 'zipdownload');
|
|||
|
||||
$config['spellcheck_engine'] = 'pspell';
|
||||
$config['default_charset'] = 'UTF-8';
|
||||
|
||||
$config['oauth_provider'] = 'generic';
|
||||
$config['oauth_provider_name'] = '{{getenv "OAUTH_PROVIDER_NAME"}}';
|
||||
$config['oauth_client_id'] = '{{getenv "OAUTH_CLIENT_ID"}}';
|
||||
$config['oauth_client_secret'] = '{{getenv "OAUTH_CLIENT_SECRET"}}';
|
||||
$config['oauth_auth_uri'] = '{{getenv "OAUTH_AUTH_URI"}}';
|
||||
$config['oauth_token_uri'] = '{{getenv "OAUTH_TOKEN_URI"}}';
|
||||
$config['oauth_identity_uri'] = '{{getenv "OAUTH_IDENTITY_URI"}}';
|
||||
$config['oauth_scope'] = 'email profile openid';
|
||||
$config['oauth_auth_parameters'] = [];
|
||||
$config['oauth_identity_fields'] = ['preferred_username'];
|
||||
$config['oauth_login_redirect'] = true;
|
||||
|
|
|
@ -22,7 +22,7 @@ http {
|
|||
{{range $domain := split (getenv "DOMAINS") ";"}}
|
||||
|
||||
server {
|
||||
listen 8080;
|
||||
listen 8080;
|
||||
|
||||
server_name {{ $domain }};
|
||||
|
||||
|
@ -48,6 +48,7 @@ http {
|
|||
fastcgi_param PATH_INFO $path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param HTTPS on;
|
||||
fastcgi_param SERVER_PORT 443;
|
||||
fastcgi_read_timeout 300;
|
||||
fastcgi_pass php;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue