Skip to content

Commit

Permalink
Añadido protocolo https a restapi
Browse files Browse the repository at this point in the history
  • Loading branch information
Uo284548 authored and Uo284548 committed Apr 30, 2023
1 parent ef560e3 commit 5d984e6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lomap_es2b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
API_URI: http://${{ secrets.DEPLOY_HOST }}:5000/api
API_URI: https://${{ secrets.DEPLOY_HOST }}:5000/api
with:
name: arquisoft/lomap_es2b/webapp
username: ${{ github.actor }}
Expand Down
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
#Install the dependencies
RUN npm install

ARG API_URI="http://localhost:5000/api"
ARG API_URI="https://localhost:5000/api"
ENV REACT_APP_API_URI=$API_URI

#Create an optimized version of the webapp
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/About.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defineFeature(feature, test => {
await page.setExtraHTTPHeaders({
'Accept-Language': 'es'
});
await page.goto(`http://localhost:3000`, { waitUntil: 'load' });
await page.goto(`https://localhost:443`, { waitUntil: 'load' });
} catch (e) {
console.log(e);
await browser.close();
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/Language.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defineFeature(feature, test => {
await page.setExtraHTTPHeaders({
'Accept-Language': 'es'
});
await page.goto(`http://localhost:3000`, { waitUntil: 'networkidle0' });
await page.goto(`https://localhost:443`, { waitUntil: 'networkidle0' });

} catch (e) {
console.log(e);
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/Map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const MapComponent = ({ onClick, filterType }:Props) => {
async function getMarkImage(){
try{
if(!infoVisible) return
const apiEndPoint = process.env.REACT_APP_API_URI || 'http://localhost:5000/api'
const apiEndPoint = process.env.REACT_APP_API_URI || 'https://localhost:5000/api'
const response = await fetch(apiEndPoint+'/image/get/'+infoVisible.images[0]);
if(response!=null) {
let blob = await response.blob()
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/MarkersSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const MarkerInfo = ({ marker, close }: InfoProps) => {
setImageToShow(null)
return
}
const apiEndPoint = process.env.REACT_APP_API_URI || 'http://localhost:5000/api'
const apiEndPoint = process.env.REACT_APP_API_URI || 'https://localhost:5000/api'
const response = await fetch(apiEndPoint+'/image/get/'+marker.images[0]);
if(response!=null){
let blob = await response.blob()
Expand Down

0 comments on commit 5d984e6

Please sign in to comment.