Skip to content

Commit

Permalink
update other references to google env variables and hyrax analytics i…
Browse files Browse the repository at this point in the history
…mplementations
  • Loading branch information
alishaevn committed May 18, 2023
1 parent 295a947 commit b03fe08
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 33 deletions.
2 changes: 1 addition & 1 deletion app/services/hyrax/analytics/google.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Google
extend ActiveSupport::Concern
# rubocop:disable Metrics/BlockLength
class_methods do
# Loads configuration options from config/analytics.yml. You only need PRIVATE_KEY_PATH or
# Loads configuration options from config/analytics.yml for Hyrax apps only. You only need PRIVATE_KEY_PATH or
# PRIVATE_KEY_VALUE. VALUE takes precedence.
# Expected structure:
# `analytics:`
Expand Down
4 changes: 0 additions & 4 deletions bin/web
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
#!/usr/local/bin/ruby
if ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE'] && !ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE'].empty?
%x{echo "$GOOGLE_OAUTH_PRIVATE_KEY_VALUE" | base64 -d > prod-cred.p12}
end

exec "bundle exec puma -v -b tcp://0.0.0.0:3000"
4 changes: 0 additions & 4 deletions bin/worker
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/usr/local/bin/ruby
if ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE'] && !ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE'].empty?
%x{echo "$GOOGLE_OAUTH_PRIVATE_KEY_VALUE" | base64 -d > prod-cred.p12}
end

if ENV['DB_URL'] && !ENV['DB_URL'].empty?
ENV['DB_URL'] = ENV['DB_URL'].gsub('pool=5', 'pool=30')
else
Expand Down
12 changes: 0 additions & 12 deletions config/analytics.yml

This file was deleted.

4 changes: 2 additions & 2 deletions config/browse_everything_providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ file_system:
# :client_id: YOUR_BOX_CLIENT_ID
# :client_secret: YOUR_BOX_CLIENT_SECRET
# google_drive:
# :client_id: YOUR_GOOGLE_API_CLIENT_ID
# :client_secret: YOUR_GOOGLE_API_CLIENT_SECRET
# :client_id: YOUR_ANALYTICS_API_CLIENT_ID
# :client_secret: YOUR_ANALYTICS_API_CLIENT_SECRET
# sky_drive:
# :client_id: YOUR_MS_LIVE_CONNECT_CLIENT_ID
# :client_secret: YOUR_MS_LIVE_CONNECT_CLIENT_SECRET
20 changes: 10 additions & 10 deletions ops/staging-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ extraEnvVars: &envVars
value: http://fcrepo.staging-fcrepo.svc.cluster.local:8080/rest
- name: GOOGLE_FONTS_KEY
value: $GOOGLE_FONTS_KEY
# - name: GOOGLE_ANALYTICS_ID
# value: $GOOGLE_ANALYTICS_ID # Set in GitHub Environment Variables Section
# - name: GOOGLE_OAUTH_APP_NAME
# - name: ANALYTICS_ID
# value: $ANALYTICS_ID # Refer to the README
# - name: ANALYTICS_OAUTH_APP_NAME
# value: palni-palci-demo
# - name: GOOGLE_OAUTH_APP_VERSION
# - name: ANALYTICS_OAUTH_APP_VERSION
# value: '1.0'
# - name: GOOGLE_OAUTH_PRIVATE_KEY_SECRET
# value: $GOOGLE_OAUTH_PRIVATE_KEY_SECRET # Set in GitHub Environment Variables Section
# - name: GOOGLE_OAUTH_PRIVATE_KEY_PATH
# - name: ANALYTICS_OAUTH_PRIVATE_KEY_SECRET
# value: $ANALYTICS_OAUTH_PRIVATE_KEY_SECRET # Refer to the README
# - name: ANALYTICS_OAUTH_PRIVATE_KEY_PATH
# value: prod-cred.p12
# - name: GOOGLE_OAUTH_PRIVATE_KEY_VALUE
# value: $GOOGLE_OAUTH_PRIVATE_KEY_VALUE
# - name: GOOGLE_OAUTH_CLIENT_EMAIL
# - name: ANALYTICS_OAUTH_PRIVATE_KEY_VALUE
# value: $ANALYTICS_OAUTH_PRIVATE_KEY_VALUE # Refer to the README
# - name: ANALYTICS_OAUTH_CLIENT_EMAIL
# value: [email protected]
- name: HYKU_ACTIVE_JOB_QUEUE_URL
value: sidekiq
Expand Down

0 comments on commit b03fe08

Please sign in to comment.