Commit 1e017820 authored by cazenave's avatar cazenave
Browse files

add dist

parent 1fda6687
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
events{}
http {
include /etc/nginx/mime.types;
server {
listen 80;
......@@ -9,5 +11,7 @@ http {
location / {
try_files $uri $uri/ /index.html;
}
}
}
}
import { Injectable } from "@angular/core";
import { HttpClient } from '@angular/common/http';
import { environment } from 'src/environments/environment.prod';
@Injectable()
export class AppConfiguration {
......@@ -13,7 +14,7 @@ export class AppConfiguration {
public ensureInit(): Promise<any> {
return new Promise((r, e) => {
this.httpClient.get("http://localhost:8080/api/setting/load").subscribe((content: AppConfiguration) => {Object.assign(this, content);r(this);}, reason => e(reason));
this.httpClient.get("http://"+environment.apiurl+"/api/setting/load").subscribe((content: AppConfiguration) => {Object.assign(this, content);r(this);}, reason => e(reason));
});
};
......
......@@ -5,6 +5,7 @@ import { FileSaverService } from 'ngx-filesaver';
import { FormControl} from '@angular/forms';
import { FormGroup} from '@angular/forms';
import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment.prod';
@Component({
selector: 'app-elasticsearch',
......@@ -42,7 +43,7 @@ export class ElasticsearchComponent implements OnInit {
"smartapiurl": "'+ this.appConfig.smartapiurl +'" \n\
}'
console.log(data);
return this.http.post("http://localhost:8080/api/setting", data,{responseType: 'text'}).subscribe( (r)=>{console.log(r)}) ;
return this.http.post("http://"+environment.apiurl+"/api/setting", data,{responseType: 'text'}).subscribe( (r)=>{console.log(r)}) ;
};
......
......@@ -5,6 +5,7 @@ import { FileSaverService } from 'ngx-filesaver';
import { FormControl} from '@angular/forms';
import { FormGroup} from '@angular/forms';
import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment.prod';
@Component({
selector: 'app-settingfdp',
......@@ -46,7 +47,7 @@ export class SettingfdpComponent implements OnInit {
"smartapiurl": "' + this.appConfig.smartapiurl + '" \n\
}'
console.log(data);
return this.http.post("http://localhost:8080/api/setting", data,{responseType: 'text'}).subscribe( (r)=>{console.log(r)}) ;
return this.http.post("http://"+environment.apiurl+"/api/setting", data,{responseType: 'text'}).subscribe( (r)=>{console.log(r)}) ;
};
......
......@@ -5,6 +5,7 @@ import { FileSaverService } from 'ngx-filesaver';
import { FormControl} from '@angular/forms';
import { FormGroup} from '@angular/forms';
import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment.prod';
@Component({
selector: 'app-settingsmartapi',
......@@ -42,7 +43,7 @@ export class SettingsmartapiComponent implements OnInit {
"smartapiurl": "'+ this.Form.value.smartapiurl +'" \n\
}'
console.log(data);
return this.http.post("http://localhost:8080/api/setting", data,{responseType: 'text'}).subscribe( (r)=>{console.log(r)}) ;
return this.http.post("http://"+environment.apiurl+"/api/setting", data,{responseType: 'text'}).subscribe( (r)=>{console.log(r)}) ;
};
}
{
"fdpurl": "http://6ddrvi64oo.lb.c1.gra7.k8s.ovh.net",
"fdpemail": "admin@cines-lab.fr",
"fdppassword": "adminadmin",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIwOGY4YjNiNC01Nzc1LTQyYmQtYjlmMy0zMTFhZDVkNGFiODgiLCJpYXQiOjE1OTQyNzY2MjEsImV4cCI6MTU5NTQ4NjIyMX0.pxCJO_yCK01uLAtlScVMHStTwFE34Ic2CxOijP8Ubcw"
}
\ No newline at end of file
import { ApiService } from 'src/app/api.service';
export const environment = {
production: true
production: true,
apiurl: '172.17.03'
};
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