Commit 18fd6a2b authored by lukas.burgey's avatar lukas.burgey

Use ssl for localhost ng serve

parent 5ff06508
......@@ -64,7 +64,9 @@
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "feudal:build",
"proxyConfig": "src/proxy.conf.js"
"proxyConfig": "src/proxy.conf.js",
"sslKey": "/etc/ssl/myCA/localhost.key",
"sslCert": "/etc/ssl/myCA/localhost.crt"
},
"configurations": {
"production": {
......
......@@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --configuration=local",
"start": "ng serve --configuration=local --ssl",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
......
......@@ -5,6 +5,5 @@
export const environment = {
production: false,
webSocketScheme: 'ws',
authPath: '/auth/request',
};
......@@ -23,8 +23,8 @@ const PROXY_CONFIG = [
'/rest',
'/django-static',
],
target: 'http://feudal-dev.scc.kit.edu',
secure: false,
target: 'https://feudal-dev.scc.kit.edu',
secure: true,
changeOrigin: true,
logLevel: 'debug',
onProxyRes: onProxyRes,
......@@ -33,8 +33,8 @@ const PROXY_CONFIG = [
context: [
'/ws',
],
target: 'http://feudal-dev.scc.kit.edu',
secure: false,
target: 'https://feudal-dev.scc.kit.edu',
secure: true,
changeOrigin: true,
logLevel: 'debug',
onProxyRes: onProxyRes,
......
Markdown is supported
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