Commit graph

79 commits

Author SHA1 Message Date
Vesa Luusua
4e8f3597fa Use basic auth only if there're env variables set 2018-03-14 15:20:06 +02:00
Boyan Tabakov
7817979bb1 Add a simple static /_status.json page 2018-03-01 10:44:05 +02:00
Kimmo Puputti
f76264de0a Allow data URLs in scripts 2018-02-23 13:08:26 +02:00
Kimmo Puputti
8e0500fe7a Whitelist Stripe API in the CSP 2018-02-09 16:38:35 +02:00
Kimmo Puputti
34b0c18bdd Allow data URL for fonts 2018-02-08 13:40:10 +02:00
Kimmo Puputti
fe73399d4b If enabled, add Sentry API to the CSP whitelist 2018-01-18 14:42:24 +02:00
Kimmo Puputti
4552a9cf29 Add Content Security Policy (CSP) middleware 2018-01-18 14:08:27 +02:00
Kimmo Puputti
ca510877b6 Log code and data as well 2018-01-18 14:08:27 +02:00
Hannu Lyytikainen
85fbccb2fd Change to cleaner syntax for environment check 2017-11-17 15:10:13 +02:00
Hannu Lyytikainen
29160d6a45 Default to production environment 2017-11-17 14:49:26 +02:00
Hannu Lyytikainen
ce07746bee Add runtime environment variable
Add a variable that can be used to differentiate between dev, staging
and production environments.
2017-11-16 18:31:31 +02:00
Kimmo Puputti
3a1ed66c5e Fix configureStore params 2017-10-26 14:48:42 +03:00
Kimmo Puputti
945f6d4862 Inject Google Analytics when tracker ID is in the environment 2017-10-25 13:18:12 +03:00
Kimmo Puputti
e6f01befc6 Log server render info only in dev mode 2017-10-23 15:04:16 +03:00
Hannu Lyytikainen
97701d0200 Add a helper function and improve function naming 2017-10-19 15:17:43 +03:00
Hannu Lyytikainen
6f35929431 Extract domain and port resolving to functions
Also use the canonical root URL value to resolve the port.
2017-10-19 14:58:47 +03:00
Hannu Lyytikainen
2be909014f Add sitemap.xml and robots.txt files 2017-10-19 11:07:56 +03:00
Vesa Luusua
9ad17224df Ensure that server doesn't try to stringify Error 2017-10-18 18:07:24 +03:00
Kimmo Puputti
90ab9c9a69 Format with latest Prettier 2017-10-13 10:11:51 +03:00
Vesa Luusua
21fa9a86a7 Server side handles functional routeConfiguration 2017-10-11 14:18:30 +03:00
Kimmo Puputti
55eb4c1aac Merge pull request #467 from sharetribe/disable-response-caching
Disable response caching
2017-10-06 10:00:26 +03:00
Kimmo Puputti
32ff790277 Skip basic auth for static resources 2017-10-06 09:55:03 +03:00
Kimmo Puputti
0a2f3a4faa Disable HTTP caching for dynamic responses 2017-10-05 14:13:24 +03:00
Kimmo Puputti
f69570db7d Avoid rendering missing static assets through the React app 2017-10-05 14:12:50 +03:00
Vesa Luusua
48fa064118 Remove ENFORCE_SSL 2017-10-05 13:00:57 +03:00
Vesa Luusua
020c81103d Created a environment variable and using it when creating sdk instances. 2017-10-05 12:57:49 +03:00
Hannu Lyytikainen
65e9889656 Log failed server-side data loading 2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
de5ec59119 Add error codes
An error code can be passed to logger. This code gets added to the
Sentry error report as a tag and can be used to search this specific
error.
2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
09f4fc9b9d Improve comments for Sentry client setup 2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
a75615707b Remove Sentry config from logger setup functions
The Sentry DSN key and environment are read from environment
parameters/config in the logger modules.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
5bf9d0f072 Send errors to sentry 2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
d46e4cdfc5 Return empty request and error handlers
In case Sentry is not set up, empty request and error handler functions
are returned instead of nulls.
2017-10-04 13:15:10 +03:00
Hannu Lyytikainen
1882e25d00 Equalize logger setup in server and browser
Set up logger in the server side with the same parameters as in the
browser and clean the environment variables out of the server/log.js
file.

Code commenting improved.
2017-10-04 13:15:10 +03:00
Hannu Lyytikainen
8a595eda4e Add Sentry integration for the server 2017-10-04 13:12:47 +03:00
Vesa Luusua
294e107c4f Read error page before request logic. 2017-10-04 11:27:23 +03:00
Vesa Luusua
992defa6c6 500.html added 2017-10-04 11:27:22 +03:00
Vesa Luusua
28b08265b2 If dataload has errors on server side, return empty store 2017-10-03 12:25:05 +03:00
Vesa Luusua
91251bd26c Send 200 or 401 from server side on auth=true pages 2017-10-02 17:19:11 +03:00
Vesa Luusua
82f73a8016 Render more Helmet stuff 2017-09-29 15:15:31 +03:00
Kimmo Puputti
e8e923dd79 Update Node, Yarn, and backend related NPM packages 2017-08-04 11:20:51 +03:00
Mikko Koski
f265c72a55 Use line items to show price breakdown 2017-07-02 10:03:35 +03:00
Boyan Tabakov
e56583011e Move basic auth after SSL redirection 2017-05-17 14:54:10 +03:00
Vesa Luusua
67f8bd92e4 format with prettier 2017-05-16 23:00:36 +02:00
Mikko Koski
b796157c82 Fix message "Listening to port 4000 in undefined mode" 2017-05-15 16:51:39 +03:00
Mikko Koski
ec9d28ab07 Add ENFORCE_SSL config. Redirect to HTTPS if true. 2017-05-15 16:51:39 +03:00
Vesa Luusua
c341e97ef0 SearchPage handles next page and prev page clicks 2017-03-29 16:56:40 +03:00
Kimmo Puputti
3f20100e40 Fix preloadedState serialisation
- Use reviver and replacer from the SDK to properly encode/decode the
   SDK types
2017-03-28 15:22:59 +03:00
Kimmo Puputti
5cb1219a97 Read API config from env in server 2017-03-23 12:53:36 +02:00
Kimmo Puputti
f4ff5908d3 Fix search page server rendering 2017-03-22 15:02:29 +02:00
Mikko Koski
c50dec0eb9 Implement sdkLoader to either require sdk package or use bundled sdk 2017-03-16 16:39:35 +02:00