How to set application wide settings for Go apps in Google App Engine?

Jason

The Google App engine for Go does not accept environment variables via the app.yaml file. How do you setup application wide settings without using the environment?


In my specific case I have a watcher type webhook app (https://github.com/jjasonclark/pulltabs) that needs to handle HMAC decryption. So I need to have a secret code for this to work. I would like to deploy many copies with different secret settings, aka not hard coded. Normally this would be an environment variable settings.

Mark Doyle

Some approaches that may suit depending on your needs:

  • Config file
  • Datastore

Config file Add a config file to your project and load the settings from there on app initialization. Beegae is an example of that approach. Depending on your security needs you might choose to exclude the file from git, create/update it during your deployment process or even consider multiple config files for different cases.

Datastore Store the settings in the datastore and load them on application initialization. This may be useful if settings need to be changed without redeploying the application each time, or multiple applications share the same datastore and some look-up logic for settings makes sense.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to host go application on dedicated server, without using google app engine

From Dev

Google App Engine Go memory management

From Dev

How to download Application source files from Google App Engine

From Dev

Google App Engine - multiple apps and multiple domains?

From Dev

How to share sessions between modules on a Google App Engine Python application?

From Dev

How to set deadline for BigQuery on Google App Engine

From Dev

How to deploy web application onto Google App Engine

From Dev

How do I serve an app engine version via subdomain when my app runs through Google Apps?

From Dev

Google App Engine Search for Go: How to paginate?

From Dev

How to use the Google Email Settings API and the OAuth2 for Apps Script Library to set email signatures for users in a Google Apps domain

From Dev

How to send request to url that is set to 'login:admin' in google app engine?

From Dev

How to set a app-wide font in Android?

From Dev

Is it possible to set a default error page using Go on Google App Engine

From Dev

Google App Engine Datastore sharding in Go

From Dev

google app engine datastore Go Query with "in" operator

From Dev

How to set GOOGLE_APPLICATION_CREDENTIALS for Google Compute Engine?

From Dev

How to set a version of app as default on the new Google App Engine Dashboad

From Dev

How to set my default version in Google App Engine

From Dev

How to set team-wide ReSharper and code formatting settings?

From Dev

Google App Engine and the Google Apps Marketplace

From Dev

Google App Engine - multiple apps and multiple domains?

From Dev

Mapping App Engine Application to NON Google Apps Domain

From Dev

How to set up a application-wide Timer?

From Dev

Porting Application to Google App Engine

From Dev

google apps from app engine

From Dev

How to set a app-wide font in Android?

From Dev

How to set my default version in Google App Engine

From Dev

How to deploy a SpringBoot Application to Google App Engine?

From Dev

Communication between Google App Engine Application and Google Cloud Engine Instance

Related Related

  1. 1

    How to host go application on dedicated server, without using google app engine

  2. 2

    Google App Engine Go memory management

  3. 3

    How to download Application source files from Google App Engine

  4. 4

    Google App Engine - multiple apps and multiple domains?

  5. 5

    How to share sessions between modules on a Google App Engine Python application?

  6. 6

    How to set deadline for BigQuery on Google App Engine

  7. 7

    How to deploy web application onto Google App Engine

  8. 8

    How do I serve an app engine version via subdomain when my app runs through Google Apps?

  9. 9

    Google App Engine Search for Go: How to paginate?

  10. 10

    How to use the Google Email Settings API and the OAuth2 for Apps Script Library to set email signatures for users in a Google Apps domain

  11. 11

    How to send request to url that is set to 'login:admin' in google app engine?

  12. 12

    How to set a app-wide font in Android?

  13. 13

    Is it possible to set a default error page using Go on Google App Engine

  14. 14

    Google App Engine Datastore sharding in Go

  15. 15

    google app engine datastore Go Query with "in" operator

  16. 16

    How to set GOOGLE_APPLICATION_CREDENTIALS for Google Compute Engine?

  17. 17

    How to set a version of app as default on the new Google App Engine Dashboad

  18. 18

    How to set my default version in Google App Engine

  19. 19

    How to set team-wide ReSharper and code formatting settings?

  20. 20

    Google App Engine and the Google Apps Marketplace

  21. 21

    Google App Engine - multiple apps and multiple domains?

  22. 22

    Mapping App Engine Application to NON Google Apps Domain

  23. 23

    How to set up a application-wide Timer?

  24. 24

    Porting Application to Google App Engine

  25. 25

    google apps from app engine

  26. 26

    How to set a app-wide font in Android?

  27. 27

    How to set my default version in Google App Engine

  28. 28

    How to deploy a SpringBoot Application to Google App Engine?

  29. 29

    Communication between Google App Engine Application and Google Cloud Engine Instance

HotTag

Archive