Skip to content

Commit

Permalink
Manage the ENABLE_FEDERATED_AVATAR option
Browse files Browse the repository at this point in the history
Support for libravatar has been added to gogs, so we should provide a
way to manage the configuration option.
  • Loading branch information
jerrykan committed Jan 27, 2017
1 parent ce805f0 commit 3db9ffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions gogs/files/app.ini.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ PROVIDER_CONFIG = {{ config.get('session_provider_config', data_dir ~ '/sessions
[picture]
AVATAR_UPLOAD_PATH = {{ config.get('picture_avatar_upload_path', data_dir ~ '/avatars/') }}
DISABLE_GRAVATAR = {{ config.get('picture_disable_gravatar', 'false')|lower }}
ENABLE_FEDERATED_AVATAR = {{ config.get('picture_enable_federated_avatar', 'false')|lower }}

[attachment]
PATH = {{ config.get('attachment_path', data_dir ~ '/attachments/') }}
Expand Down
2 changes: 2 additions & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ gogs:

# disable the use of gravatar for user profile pictures
picture_disable_gravatar: 'false'
# enable the use of libravatar
picture_enable_federated_avatar: 'true'

# 'console', 'file', 'conn', 'smtp', or 'database' (default: file)
# also see 'logs_dir'
Expand Down

0 comments on commit 3db9ffb

Please sign in to comment.