mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Add regex validations for OAuth, UA, and S3 fields
This commit is contained in:
parent
d704991609
commit
78e3e7d1d5
1 changed files with 30 additions and 13 deletions
|
@ -65,18 +65,19 @@ basic:
|
||||||
track_external_right_clicks:
|
track_external_right_clicks:
|
||||||
client: true
|
client: true
|
||||||
default: false
|
default: false
|
||||||
|
ga_universal_tracking_code:
|
||||||
|
client: true
|
||||||
|
default: ''
|
||||||
|
regex: "^UA-\\d+-\\d+$"
|
||||||
|
ga_universal_domain_name:
|
||||||
|
client: true
|
||||||
|
default: 'auto'
|
||||||
ga_tracking_code:
|
ga_tracking_code:
|
||||||
client: true
|
client: true
|
||||||
default: ''
|
default: ''
|
||||||
ga_domain_name:
|
ga_domain_name:
|
||||||
client: true
|
client: true
|
||||||
default: ''
|
default: ''
|
||||||
ga_universal_tracking_code:
|
|
||||||
client: true
|
|
||||||
default: ''
|
|
||||||
ga_universal_domain_name:
|
|
||||||
client: true
|
|
||||||
default: 'auto'
|
|
||||||
top_menu:
|
top_menu:
|
||||||
client: true
|
client: true
|
||||||
refresh: true
|
refresh: true
|
||||||
|
@ -206,18 +207,30 @@ users:
|
||||||
enable_twitter_logins:
|
enable_twitter_logins:
|
||||||
client: true
|
client: true
|
||||||
default: false
|
default: false
|
||||||
twitter_consumer_key: ''
|
twitter_consumer_key:
|
||||||
twitter_consumer_secret: ''
|
default: ''
|
||||||
|
regex: "^\\w*$"
|
||||||
|
twitter_consumer_secret:
|
||||||
|
default: ''
|
||||||
|
regex: "^\\w*$"
|
||||||
enable_facebook_logins:
|
enable_facebook_logins:
|
||||||
client: true
|
client: true
|
||||||
default: false
|
default: false
|
||||||
facebook_app_id: ''
|
facebook_app_id:
|
||||||
facebook_app_secret: ''
|
default: ''
|
||||||
|
regex: "^\\d+$"
|
||||||
|
facebook_app_secret:
|
||||||
|
default: ''
|
||||||
|
regex: "^[a-f0-9]*$"
|
||||||
enable_github_logins:
|
enable_github_logins:
|
||||||
client: true
|
client: true
|
||||||
default: false
|
default: false
|
||||||
github_client_id: ''
|
github_client_id:
|
||||||
github_client_secret: ''
|
default: ''
|
||||||
|
regex: "^[a-f0-9]*$"
|
||||||
|
github_client_secret:
|
||||||
|
default: ''
|
||||||
|
regex: "^[a-f0-9]*$"
|
||||||
enable_sso:
|
enable_sso:
|
||||||
client: true
|
client: true
|
||||||
default: false
|
default: false
|
||||||
|
@ -404,7 +417,9 @@ files:
|
||||||
s3_region:
|
s3_region:
|
||||||
default: ''
|
default: ''
|
||||||
enum: 'S3RegionSiteSetting'
|
enum: 'S3RegionSiteSetting'
|
||||||
s3_upload_bucket: ''
|
s3_upload_bucket:
|
||||||
|
default: ''
|
||||||
|
regex: "^[^\\.]*$"
|
||||||
allow_profile_backgrounds:
|
allow_profile_backgrounds:
|
||||||
client: true
|
client: true
|
||||||
default: true
|
default: true
|
||||||
|
@ -557,6 +572,8 @@ backups:
|
||||||
default: false
|
default: false
|
||||||
s3_backup_bucket:
|
s3_backup_bucket:
|
||||||
client: false
|
client: false
|
||||||
|
default: ''
|
||||||
|
regex: "^[^\\.]*$"
|
||||||
|
|
||||||
uncategorized:
|
uncategorized:
|
||||||
version_checks:
|
version_checks:
|
||||||
|
|
Loading…
Reference in a new issue