Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 91f1b32

Browse files
authored
Usar https en cliente web (#88)
* offensive text detection * Use https in web client
1 parent 4b775d6 commit 91f1b32

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

hack/seed_system.py

Whitespace-only changes.

release/docker-compose.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,16 @@ services:
218218
TRANSLATIONS_SERVICE_PORT: 5000
219219

220220
############# Web Client ################
221-
# webclient:
222-
# build: ../src/webclient/
223-
# container_name: webclient
224-
# depends_on:
225-
# - apigateway
226-
# ports:
227-
# - "80:80"
228-
# - "443:443"
229-
# environment:
230-
# EASIDIOMAS_API_ENDPOINT: "http://apigateway:5000/api"
221+
webclient:
222+
build: ../src/webclient/
223+
container_name: webclient
224+
depends_on:
225+
- apigateway
226+
ports:
227+
- "80:80"
228+
- "443:443"
229+
environment:
230+
EASIDIOMAS_API_ENDPOINT: "https://apigateway:8443/api"
231231

232232

233233
############ ELK ###############

src/webclient/Program.cs

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
51
using Microsoft.AspNetCore.Hosting;
62
using Microsoft.Extensions.Configuration;
73
using Microsoft.Extensions.Hosting;
8-
using Microsoft.Extensions.Logging;
94

105
namespace WebClient
116
{

src/webclient/Startup.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ public Startup(IConfiguration configuration)
2020

2121
// This method gets called by the runtime. Use this method to add services to the container.
2222
public void ConfigureServices(IServiceCollection services)
23-
{
23+
{
24+
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
25+
(sender, certificate, chain, sslPolicyErrors) => true;
26+
2427
services.AddDistributedMemoryCache();
2528
services.AddSession(options =>
2629
{

src/webclient/appsettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
}
88
},
99
"AllowedHosts": "*",
10-
"EASIDIOMAS_API_ENDPOINT": "http://localhost:5000/api"
10+
"EASIDIOMAS_API_ENDPOINT": "https://156.35.82.22:8443/api"
1111
}

0 commit comments

Comments
 (0)