Commit Graph

67 Commits

Author SHA1 Message Date
Rodrigue Chakode ad8e700e7a
Merge pull request #11 from Natureshadow/feature-no-redirect
Do not redirect if no requestOrigin is set
2022-04-29 12:30:59 +02:00
Rodrigue Chakode 9f7e837262
Merge pull request #12 from Natureshadow/feature-cors
Send Origin back as Access-Control-Allow-Origin
2022-04-29 10:44:03 +02:00
Rodrigue Chakode f3b3fd0fe8
Merge pull request #8 from Natureshadow/patch-2
Allow specifying listen address
2022-04-29 10:14:46 +02:00
Rodrigue Chakode 61c66c5976
Merge pull request #7 from Natureshadow/patch-1
Fix default for CONTACT_REPLY_BCC_EMAIL
2022-04-29 10:13:41 +02:00
Dominik George d58a99ae33
Send Origin back as Access-Control-Allow-Origin
Rationale: At this point, we have already verified that the Origin is
allowed. Some clients, e.g. those that submit a form using AJAX, will
expect a CORS header allowing the request. Instead of setting
Access-Control-Allow-Origin *, or setting the header to all allowed
origins (thus leaking a list of sites that use the gateway), we can
thus simply set the same Origin the browser identifies with.
2022-04-28 23:41:39 +02:00
Dominik George 66d5aae498
Do not redirect if no originURI is set 2022-04-28 23:30:56 +02:00
Dominik George 47e562362b
Allow specifying listen address 2022-04-28 19:49:02 +02:00
Dominik George 0a68f14d87
Fix default for CONTACT_REPLY_BCC_EMAIL 2022-04-28 19:36:46 +02:00
Rodrigue Chakode 477643b58e
README: updated code formating 2022-02-01 09:28:03 +01:00
Rodrigue Chakode 84b65f1e4d
Update README.md 2022-01-04 09:26:02 +01:00
Rodrigue Chakode e15892ba5f
Update README.md 2022-01-04 09:25:03 +01:00
Rodrigue Chakode dccdd6a8d3
Update README.md 2021-12-07 20:23:43 +01:00
Rodrigue Chakode d12a1d583f
Update README.md 2021-10-27 18:15:03 +02:00
Rodrigue Chakode 2015a1a341 improvement of the contact form processing:
* always use CONTACT_REPLY_EMAIL as sender email (issue #6)
* add the ability to use a hidden field to set the redirection page
2021-10-26 20:14:24 +02:00
Rodrigue Chakode 73a3eb0266
Fixed the base url when using Kubernetes port fw 2021-09-26 11:31:41 +02:00
Rodrigue Chakode 450dcf0d48
Fixed Docker test url 2021-09-26 11:24:25 +02:00
Rodrigue Chakode 2460c7f147 updated readme 2021-09-19 22:52:21 +02:00
Rodrigue Chakode 2cb7818efe use log instead of logrus for logging 2021-09-19 22:49:48 +02:00
Rodrigue Chakode e2f5aba525
Updated app.yaml.sample 2021-09-14 23:37:07 +02:00
Rodrigue Chakode 4449260e22
Improved the application description 2021-09-10 10:55:04 +02:00
Rodrigue Chakode d8243a152e
Fixed a CI file 2021-09-10 10:22:26 +02:00
Rodrigue Chakode 8562190bea
CI: Push tagged Docker image 2021-09-10 10:14:05 +02:00
Rodrigue Chakode ebf03f4dd6
CI: Fixed Docker image name (issue #4) 2021-09-10 10:08:03 +02:00
Rodrigue Chakode 97da1f9d95
Update README.md 2021-02-28 08:23:00 +01:00
Rodrigue Chakode 13b686b3a3 now use contact person's email in from 2020-08-20 09:43:14 +02:00
Rodrigue Chakode 6234d56f8b improved contact email template 2020-08-20 09:42:49 +02:00
Rodrigue Chakode 4654adc72f improved contact template formating 2020-08-19 18:11:55 +02:00
Rodrigue Chakode 5160e150df updated default app engine config with reCaptcha setting 2020-08-17 22:24:56 +02:00
Rodrigue Chakode 15d6735778
Merge pull request #3 from ccamel/fix/fix-writer-close
Fix potential closing issues
2020-06-16 21:57:43 +02:00
Chris Camel c58be715bd
add deferred Close to connection 2020-06-16 18:46:38 +02:00
Chris Camel 599d23e080
add deferred Close to smtp writer 2020-06-16 18:45:03 +02:00
Rodrigue Chakode 6ab65d88e5 review docs 2020-06-13 12:22:01 +02:00
Rodrigue Chakode cb46b06458
Merge pull request #2 from ccamel/add-recaptcha-support
Add reCaptcha support
2020-06-04 13:30:53 +02:00
Rodrigue Chakode 162ee58940
Merge pull request #1 from ccamel/fix-uri-encoding
Fix possible URI encoding issues on Location
2020-06-02 17:11:19 +02:00
Chris Camel 17082f37e6
ignore IntelliJ IDEA stuff 2020-06-02 15:31:52 +02:00
Chris Camel 02022c278b
add reCaptcha parts in form 2020-06-02 15:29:23 +02:00
Chris Camel 7511603de4
add go-recaptcha dependency 2020-06-02 20:05:21 +02:00
Chris Camel 2a5757874e
add mention for reCaptcha 2020-06-02 15:27:28 +02:00
Chris Camel 310cd75505
add reCaptcha support 2020-06-02 15:27:08 +02:00
Chris Camel f3a62cd876
fix possible URI encoding issues
Encode query parameters for the Location URL.
2020-06-02 11:50:28 +02:00
Chris Camel 40f4fd2d30
extract security checks from sendmail into a specific handler
use `http.Handler` wrappers to split the sendmail handler into 2
distinct handlers: one for validating the query (currently, checking the allowed
domains) and the other one for the sendmail functionality.
2020-06-01 19:55:00 +02:00
Rodrigue Chakode cdd3fc5ec1
Fixed toc 2020-06-01 18:56:54 +02:00
Rodrigue Chakode 5f9a9ea9a7
Fixed license path in readme 2020-05-31 17:18:18 +02:00
Rodrigue Chakode 9826e510a0
Fixed typo 2020-05-31 17:17:16 +02:00
Rodrigue Chakode 26c92d900e fixed docker build on Github actions 2020-05-31 16:07:00 +02:00
Rodrigue Chakode 913e238998 set version to 0.1.0 2020-05-31 15:27:40 +02:00
Rodrigue Chakode dc1881eff5 review docs
review docs
2020-05-31 15:27:39 +02:00
Rodrigue Chakode 05ffbf2a32 updated default App Engine config 2020-05-31 15:07:13 +02:00
Rodrigue Chakode 4fa14c4990 updated vendoring 2020-05-31 13:50:44 +02:00
Rodrigue Chakode 9a6fe388e0 added comments in default config 2020-05-31 13:46:01 +02:00