Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added configs for accreditional project #24

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .gitignore
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0.3
Empty file modified README.MD
100644 → 100755
Empty file.
Empty file modified base_images/README.MD
100644 → 100755
Empty file.
Empty file modified base_images/ruby_2_4/Dockerfile
100644 → 100755
Empty file.
Empty file modified base_images/ruby_2_5/Dockerfile
100644 → 100755
Empty file.
Empty file modified base_images/ruby_2_6/Dockerfile
100644 → 100755
Empty file.
Empty file modified base_images/ruby_2_7/Dockerfile
100644 → 100755
Empty file.
Empty file modified base_images/ruby_3_0/Dockerfile
100644 → 100755
Empty file.
Empty file modified base_images/ruby_3_0/releaseable/Dockerfile
100644 → 100755
Empty file.
77 changes: 77 additions & 0 deletions docker-compose.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,73 @@ services:
restart: always
depends_on:
- db

eid:
tty: true
stdin_open: true
image: eid
build:
context: ./../eid_manager
links:
- db
environment:
- APP_DBHOST=db
- REDIS_URL=redis://redis:6379/12
- PARALLEL_WORKERS=1
volumes:
- ./../eid_manager:/opt/webapps/app
- ./shared/ca:/opt/ca
- tmp:/opt/webapps/app/tmp/
- ./../:/shared
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -b 0.0.0.0"
restart: always
depends_on:
- db

eis_billing_system:
tty: true
stdin_open: true
image: eis_billing_system
build:
context: ./../eis_billing_system
links:
- db
- registry
environment:
- APP_DBHOST=db
- PARALLEL_WORKERS=1
volumes:
- ./../eis_billing_system:/opt/webapps/app
- ./shared/ca:/opt/ca
- tmp:/opt/webapps/app/tmp/
- ./../:/shared
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -b 0.0.0.0"
restart: always
depends_on:
- db

accreditation_center:
tty: true
stdin_open: true
image: accreditation_center
build:
context: ./../accreditation_center
links:
- db
- registry
environment:
- APP_DBHOST=db
- REDIS_URL=redis://redis:6379/12
- PARALLEL_WORKERS=1
volumes:
- ./../accreditation_center:/opt/webapps/app
- ./shared/ca:/opt/ca
- tmp:/opt/webapps/app/tmp/
- ./../:/shared
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -b 0.0.0.0"
restart: always
depends_on:
- db

redis:
image: redis
Expand Down Expand Up @@ -167,6 +234,16 @@ services:
POSTGRES_DB: "db"
POSTGRES_HOST_AUTH_METHOD: "trust"

ngrok:
image: shkoliar/ngrok:latest
ports:
- 4551:4551
links:
- eis_billing_system
environment:
- DOMAIN=eis_billing_system
- PORT=3000

volumes:
pg:
tmp:
Empty file modified nginx/nginx.conf
100644 → 100755
Empty file.
39 changes: 39 additions & 0 deletions nginx/sites-enabled/accreditation_center.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
upstream accreditation_center {
server accreditation_center:3000;
}

server {
listen 80;
server_name accreditation_center.test;

location / {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl http2;
server_name accreditation_center.test;

ssl_certificate /opt/ca/certs/apache.crt;
ssl_certificate_key /opt/ca/private/apache.key;

try_files $uri/index.html $uri @app;

gzip on;
gzip_vary on;
gzip_min_length 500;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
gzip_disable "MSIE [1-6]\.";

location @app {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://accreditation_center;
break;
}
}
Empty file modified nginx/sites-enabled/auction.test
100644 → 100755
Empty file.
42 changes: 42 additions & 0 deletions nginx/sites-enabled/eid.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
upstream eid {
server eid:3000;
}

server {
listen 80;
server_name eid.test;

location / {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl http2;
server_name eid.test;

ssl_certificate /opt/ca/certs/apache.crt;
ssl_certificate_key /opt/ca/private/apache.key;

try_files $uri/index.html $uri @app;

gzip on;
gzip_vary on;
gzip_min_length 500;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
gzip_disable "MSIE [1-6]\.";

location @app {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://eid;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
break;
}
}
39 changes: 39 additions & 0 deletions nginx/sites-enabled/eis_billing_system.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
upstream eis_billing_system {
server eis_billing_system:3000;
}

server {
listen 80;
server_name eis_billing_system.test;

location / {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl http2;
server_name eis_billing_system.test;

ssl_certificate /opt/ca/certs/apache.crt;
ssl_certificate_key /opt/ca/private/apache.key;

try_files $uri/index.html $uri @app;

gzip on;
gzip_vary on;
gzip_min_length 500;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
gzip_disable "MSIE [1-6]\.";

location @app {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://eis_billing_system;
break;
}
}
Empty file modified nginx/sites-enabled/registrar.test
100644 → 100755
Empty file.
Empty file modified nginx/sites-enabled/registry.test
100644 → 100755
Empty file.
Empty file modified nginx/sites-enabled/rest-whois.test
100644 → 100755
Empty file.
Empty file modified setup.sh
100644 → 100755
Empty file.
Empty file modified shared/ca/certs/.gitkeep
100644 → 100755
Empty file.
Empty file modified shared/ca/crl/.gitkeep
100644 → 100755
Empty file.
Empty file modified shared/ca/csrs/.gitkeep
100644 → 100755
Empty file.
Empty file modified shared/ca/newcerts/.gitkeep
100644 → 100755
Empty file.
Empty file modified shared/ca/openssl.cnf
100644 → 100755
Empty file.
Empty file modified shared/ca/private/.gitkeep
100644 → 100755
Empty file.
Empty file modified shared/ca/server.csr.cnf
100644 → 100755
Empty file.
Empty file modified shared/ca/v3.ext
100644 → 100755
Empty file.