Merge branch 'kb_development' into kb_migration
This commit is contained in:
commit
751b603e12
17 changed files with 341 additions and 44 deletions
|
@ -19,13 +19,6 @@ media_host ||= host_to_url(ENV['AZURE_ALIAS_HOST'])
|
|||
media_host ||= host_to_url(ENV['S3_HOSTNAME']) if ENV['S3_ENABLED'] == 'true'
|
||||
media_host ||= assets_host
|
||||
|
||||
google_host = 'https://www.googletagmanager.com'
|
||||
google_host2 = 'https://googleads.g.doubleclick.net'
|
||||
google_host3 = 'https://www.googleadservices.com'
|
||||
google_host4 = 'https://www.google.co.jp'
|
||||
google_host5 = 'https://www.google.com'
|
||||
google_tag_script_hash = "'sha256-CS1WvLDd3zJOdxpEk+N+VigcWMa6V345p2HS0WYiFWE='"
|
||||
|
||||
Rails.application.config.content_security_policy do |p|
|
||||
p.base_uri :none
|
||||
p.default_src :none
|
||||
|
@ -45,10 +38,10 @@ Rails.application.config.content_security_policy do |p|
|
|||
webpacker_urls = %w(ws http).map { |protocol| "#{protocol}#{Webpacker.dev_server.https? ? 's' : ''}://#{webpacker_public_host}" }
|
||||
|
||||
p.connect_src :self, :data, :blob, assets_host, media_host, Rails.configuration.x.streaming_api_base_url, *webpacker_urls
|
||||
p.script_src :self, :unsafe_inline, :unsafe_eval, assets_host, google_host, google_host2, google_host3
|
||||
p.script_src :self, :unsafe_inline, :unsafe_eval, assets_host
|
||||
else
|
||||
p.connect_src :self, :data, :blob, assets_host, media_host, Rails.configuration.x.streaming_api_base_url
|
||||
p.script_src :self, assets_host, "'wasm-unsafe-eval'", google_host, google_host2, google_host3, google_host4, google_host5, google_tag_script_hash
|
||||
p.script_src :self, assets_host, "'wasm-unsafe-eval'"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1073,11 +1073,16 @@ en:
|
|||
keyword: Keywords
|
||||
tag: Tags
|
||||
errors:
|
||||
duplicate_account: Duplicate account
|
||||
duplicate_domain: Duplicate domain
|
||||
duplicate_keyword: Duplicate keyword
|
||||
duplicate_tag: Duplicate tag
|
||||
limit:
|
||||
accounts: 登録できるアカウント数の上限に達しています
|
||||
domains: 登録できるドメイン数の上限に達しています
|
||||
keywords: 登録できるキーワード数の上限に達しています
|
||||
tags: 登録できるタグ数の上限に達しています
|
||||
too_short_keyword: Too short keyword! must 2 and more letters
|
||||
edit:
|
||||
accounts_hint: \@askyq or @askyq@example.com
|
||||
accounts_raw: Account list
|
||||
|
|
|
@ -1032,6 +1032,7 @@ ja:
|
|||
tags: 登録できるタグ数の上限に達しています
|
||||
over_limit: 所持できるアンテナ数 %{limit}を超えています
|
||||
over_stl_limit: 所持できるSTLモード付きアンテナ数 (ホーム/リストそれぞれにつき%{limit}) を超えています
|
||||
too_short_keyword: キーワードが短すぎます
|
||||
edit:
|
||||
accounts_hint: ローカルアカウントの場合は「@info」、リモートアカウントの場合は「@info@example.com」の形式で指定します。サーバーが認識していないアカウントは保存時に自動的に削除されます。
|
||||
accounts_raw: 絞り込むアカウント
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue