-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from DiSSCo/IntegrateAPI
Integrate api
- Loading branch information
Showing
22 changed files
with
766 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.dockerignore | ||
Dockerfile | ||
Dockerfile.prod | ||
Dockerfile.prod | ||
|
||
deployment/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: '3.8' | ||
|
||
services: | ||
cordra: | ||
container_name: cordra | ||
restart: always | ||
image: public.ecr.aws/dissco/cordra:latest | ||
env_file: | ||
- ./cordra/variables.env | ||
volumes: | ||
- ./data:/opt/cordra/data | ||
tettris_marketplace: | ||
container_name: tettris_marketplace | ||
restart: always | ||
image: public.ecr.aws/dissco/tettris-marketplace:latest | ||
nginx: | ||
container_name: nginx | ||
restart: unless-stopped | ||
image: nginx:1.26 | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
volumes: | ||
- ./nginx/conf:/etc/nginx:ro | ||
- ./certbot/www:/var/www/certbot | ||
- ./certbot/conf:/etc/letsencrypt | ||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" | ||
certbot: | ||
image: certbot/certbot | ||
container_name: certbot | ||
restart: unless-stopped | ||
volumes: | ||
- ./certbot/conf:/etc/letsencrypt | ||
- ./certbot/www:/var/www/certbot | ||
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
events {} | ||
http { | ||
server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
|
||
location / { | ||
return 301 https://$host$request_uri; | ||
} | ||
} | ||
server { | ||
listen 443 ssl; | ||
listen [::]:443 ssl; | ||
http2 on; | ||
|
||
ssl_certificate /etc/letsencrypt/live/blue.bicikl-project.eu-0001/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/blue.bicikl-project.eu-0001/privkey.pem; | ||
ssl_session_timeout 1d; | ||
ssl_session_cache shared:MozSSL:10m; | ||
ssl_session_tickets off; | ||
|
||
ssl_dhparam /etc/letsencrypt/dhparam; | ||
|
||
# intermediate configuration | ||
ssl_protocols TLSv1.2 TLSv1.3; | ||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA> | ||
ssl_prefer_server_ciphers off; | ||
|
||
# HSTS (ngx_http_headers_module is required) (63072000 seconds) | ||
add_header Strict-Transport-Security "max-age=63072000" always; | ||
|
||
# OCSP stapling | ||
ssl_stapling on; | ||
ssl_stapling_verify on; | ||
|
||
# verify chain of trust of OCSP response using Root CA and Intermediate certs | ||
ssl_trusted_certificate /etc/letsencrypt/live/blue.bicikl-project.eu-0001/fullchain.pem; | ||
|
||
location / { | ||
proxy_pass http://tettris_marketplace:3000; | ||
} | ||
|
||
location /cordra { | ||
proxy_pass https://cordra:8443; | ||
} | ||
|
||
location ~ /.well-known/acme-challenge/ { | ||
root /var/www/certbot; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.