Commit 731733fb authored by Daniel Perez's avatar Daniel Perez
Browse files

Adding policy for swagger

parent 24e38801
Pipeline #34348 failed with stages
in 1 minute and 59 seconds
......@@ -21,9 +21,9 @@
swagger: "2.0.0"
info:
title: "Seismic Store Service"
title: "Seismic DMS Service"
version: "3.0.0"
description: "Seismic Domain Data Management APIs to store and manage seismic datasets ."
description: "Seismic Data Management APIs to store and manage seismic datasets ."
license:
name: "Apache 2.0"
url: "https://www.apache.org/licenses/LICENSE-2.0.html"
......@@ -1876,14 +1876,9 @@ definitions:
security:
- bearer: []
appkey: []
securityDefinitions:
bearer:
type: apiKey
name: Authorization
in: header
appkey:
type: apiKey
name: appkey
in: header
\ No newline at end of file
......@@ -21,9 +21,9 @@
swagger: "2.0"
info:
title: "Seismic Store Service (#{app.environment.identifier}#)"
title: "Seismic DMS Service (#{app.environment.identifier}#)"
version: "3.0.0"
description: "Seismic Domain Data Management APIs to store and manage seismic datasets ."
description: "Seismic Data Management APIs to store and manage seismic datasets ."
host: "#{gcp.endpoints.service.name}#"
basePath: "/"
......
......@@ -7,7 +7,7 @@
"scripts": {
"clean": "rm -rf dist coverage test-results.xml .nyc_output",
"clean:npm": "npx rimraf ./node_modules",
"build": "set INLINE_RUNTIME_CHUNK=false && tsc",
"build": "tsc",
"lint": "tslint -c tslint.json 'src/**/*.ts'",
"start": "node -r dotenv/config ./dist/server/server-start.js",
"start:redis": "nohup redis-server > /tmp/redis.log 2>&1 &",
......
......@@ -49,7 +49,8 @@ export class Response {
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Content-Security-Policy': 'script-src \'self\' \'' +
'sha256-/jDKvbQ8cdux+c5epDIqkjHbXDaIY8RucT1PmAe8FG4=\' \'' +
'sha256-Zs5IcTe3sZcSKyWwfnpj4Arf2O14pmf4PcoigyHlHK8=\'',
'sha256-Zs5IcTe3sZcSKyWwfnpj4Arf2O14pmf4PcoigyHlHK8=\' \'' +
'sha256-BeXIQk2DxxoDrgnnoH683KOnlwQvO0HH1fT4VFQTi8g=\'',
'Expires': '0',
'Service-Provider': Config.CLOUDPROVIDER,
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment