Skip to content

Commit fd214b3

Browse files
Merge pull request GoogleCloudPlatform#125 from GoogleCloudPlatform/mailgut
Config files for flexible/{mailgun,mailjet}.
2 parents 05e74db + ed21349 commit fd214b3

20 files changed

+2884
-192
lines changed

appengine/flexible/mailgun/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Mailgun PHP Sample Application for App Engine Flexible Environment.
2+
3+
## Description
4+
5+
The sample code lives in [the standard directory](../../standard/mailgun).
6+
Only two configuration files differ: `app.yaml` and `nginx-app.conf`.
7+
8+
Copy `app.yaml` and `nginx-app.conf` into [that directory](../../standard/mailgun),
9+
then follow the instructions in the [README](../../standard/mailgun/README.md).
10+
11+
## Contributing changes
12+
13+
* See [CONTRIBUTING.md](../../../CONTRIBUTING.md)
14+
15+
## Licensing
16+
17+
* See [LICENSE](../../../LICENSE)
18+
19+

appengine/flexible/mailgun/app.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
runtime: php
2+
vm: true
3+
4+
runtime_config:
5+
document_root: .
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
location / {
2+
# try to serve file directly, fallback to front controller
3+
try_files $uri /index.php$is_args$args;
4+
}

appengine/flexible/mailjet/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Mailjet PHP Sample Application for App Engine Flexible Environment.
2+
3+
## Description
4+
5+
The sample code lives in [the standard directory](../../standard/mailjet).
6+
Only two configuration files differ: `app.yaml` and `nginx-app.conf`.
7+
8+
Copy `app.yaml` and `nginx-app.conf` into [that directory](../../standard/mailjet),
9+
then follow the instructions in the [README](../../standard/mailjet/README.md).
10+
11+
## Contributing changes
12+
13+
* See [CONTRIBUTING.md](../../../CONTRIBUTING.md)
14+
15+
## Licensing
16+
17+
* See [LICENSE](../../../LICENSE)
18+
19+

appengine/flexible/mailjet/app.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
runtime: php
2+
vm: true
3+
4+
runtime_config:
5+
document_root: .
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
location / {
2+
# try to serve file directly, fallback to front controller
3+
try_files $uri /index.php$is_args$args;
4+
}

appengine/standard/mailgun/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This sample application demonstrates how to use [Mailgun with Google App Engine]
77
Before running this sample:
88

99
1. You will need a [Mailgun account](http://www.mailgun.com/google).
10-
2. Update `MAILGUN_DOMAIN` and `MAILGUN_API_KEY` in `index.php` to match your
10+
2. Update `MAILGUN_DOMAIN` and `MAILGUN_APIKEY` in `index.php` to match your
1111
Mailgun credentials. You can use your account's sandbox domain.
1212

1313
## Prerequisites

appengine/standard/mailgun/composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
"require": {
33
"silex/silex": "^1.3",
44
"mailgun/mailgun-php": "~2.0",
5-
"php-http/guzzle6-adapter": "^1.0"
5+
"php-http/guzzle6-adapter": "^1.0",
6+
"symfony/yaml": "^3.1"
67
},
78
"require-dev": {
8-
"symfony/browser-kit": "^3.0"
9+
"symfony/browser-kit": "^3.0",
10+
"google/cloud-tools": "^0.3.0",
11+
"paragonie/random_compat": "^2.0"
912
}
1013
}

0 commit comments

Comments
 (0)