Skip to content

Commit

Permalink
add integration proxy apps (#342)
Browse files Browse the repository at this point in the history
* add integration proxy servers

* remove ssl declaration
  • Loading branch information
3mcd authored May 22, 2024
1 parent b31d3b0 commit dcaaf5d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integrations/evaluations-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf
16 changes: 16 additions & 0 deletions integrations/evaluations-proxy/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
worker_processes auto;

error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

http {
server {
listen 80;
server_name integration-evaluations.onrender.com;
return 301 $scheme://app.pubpub.org/intg/evaluations$request_uri;
}
}
2 changes: 2 additions & 0 deletions integrations/submissions-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf
16 changes: 16 additions & 0 deletions integrations/submissions-proxy/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
worker_processes auto;

error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

http {
server {
listen 80;
server_name integration-submissions.onrender.com;
return 301 $scheme://app.pubpub.org/intg/submissions$request_uri;
}
}
12 changes: 12 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ services:
startCommand: pnpm start --filter integration-evaluations
envVars:
- fromGroup: pubpub-integration-prod-env
# integration-submissions-proxy
- type: web
name: integration-submissions-proxy
env: docker
rootDir: ./integrations/submissions-proxy
dockerfilePath: ./Dockerfile
# integration-evaluations-proxy
- type: web
name: integration-evaluations-proxy
env: docker
rootDir: ./integrations/evaluations-proxy
dockerfilePath: ./Dockerfile
databases:
- name: core
plan: standard
Expand Down

0 comments on commit dcaaf5d

Please sign in to comment.