Skip to content

Commit

Permalink
Merge pull request #4 from phoenixlan/update/addInfoscreen
Browse files Browse the repository at this point in the history
Add infoscreen to the fullstack, fix stripe_pk to docker-compose
  • Loading branch information
petterroea authored Sep 14, 2023
2 parents 90440fc + 33a1200 commit 36f7f47
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
17 changes: 17 additions & 0 deletions phoenix-development/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,23 @@ services:
logging:
options:
max-size: "1g"
info_page:
build:
context: ../../
dockerfile: fullstack/phoenix-development/nodejs.Dockerfile
environment:
BASE_URL: "http://api.dev.phoenixlan.no:3000"
REACT_APP_API_URL: "http://api.dev.phoenixlan.no:3000"
entrypoint:
- bash
- "-c"
- "cd ../phoenixjs && yarn link && cd ../phoenix && yarn link @phoenixlan/phoenix.js && yarn && yarn start"
volumes:
- ../../phoenixinfo-v1:/srv/phoenix
- ../../phoenixjs:/srv/phoenixjs
logging:
options:
max-size: "1g"
db:
image: postgres:alpine
env_file: .db_env
Expand Down
27 changes: 26 additions & 1 deletion phoenix-development/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,31 @@ http {



server {
listen 3000;
root /var/www;
server_name info.dev.phoenixlan.no;
index index.html index.htm;

# Fuck Google
add_header Permissions-Policy interest-cohort=();

location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://info_page:3000;
}

location /ws {
proxy_pass http://info_page:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
}

server {
listen 3000;
root /var/www;
Expand Down Expand Up @@ -105,4 +130,4 @@ http {
}


}
}

0 comments on commit 36f7f47

Please sign in to comment.