Browse Source

fix: move redirect confs to vhost for all services

master
Apostolos Fanakis 4 years ago
parent
commit
7a11f1ef64
Signed by: Apostolof GPG Key ID: 8600B4C4163B3269
  1. 12
      docker-compose.yml
  2. 64
      nginx-reverse-proxy-confs/redirect.conf
  3. 1
      nginx-reverse-proxy-confs/www.concordia.ecentrics.net
  4. 1
      nginx-reverse-proxy-confs/www.contracts.concordia.ecentrics.net
  5. 1
      nginx-reverse-proxy-confs/www.ecentrics.net
  6. 1
      nginx-reverse-proxy-confs/www.ganache.ecentrics.net
  7. 1
      nginx-reverse-proxy-confs/www.guide.concordia.ecentrics.net
  8. 1
      nginx-reverse-proxy-confs/www.pinner.concordia.ecentrics.net
  9. 1
      nginx-reverse-proxy-confs/www.rendezvous.ecentrics.net
  10. 1
      nginx-reverse-proxy-confs/www.staging.concordia.ecentrics.net
  11. 1
      nginx-reverse-proxy-confs/www.staging.contracts.concordia.ecentrics.net
  12. 1
      nginx-reverse-proxy-confs/www.staging.ganache.ecentrics.net
  13. 1
      nginx-reverse-proxy-confs/www.staging.guide.concordia.ecentrics.net
  14. 1
      nginx-reverse-proxy-confs/www.staging.pinner.concordia.ecentrics.net

12
docker-compose.yml

@ -32,7 +32,19 @@ services:
- ./volumes/nginx/certs:/etc/nginx/certs:ro
- ./nginx-reverse-proxy-confs/client-max-body-size.conf:/etc/nginx/conf.d/client-max-body-size.conf:ro
- ./nginx-reverse-proxy-confs/redirect.conf:/etc/nginx/conf.d/redirect.conf:ro
- ./nginx-reverse-proxy-confs/www.ecentrics.net:/etc/nginx/vhost.d/www.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.jenkins.ecentrics.net:/etc/nginx/vhost.d/www.jenkins.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.concordia.ecentrics.net:/etc/nginx/vhost.d/www.concordia.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.staging.concordia.ecentrics.net:/etc/nginx/vhost.d/www.staging.concordia.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.guide.concordia.ecentrics.net:/etc/nginx/vhost.d/www.guide.concordia.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.staging.guide.concordia.ecentrics.net:/etc/nginx/vhost.d/www.staging.guide.concordia.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.ganache.ecentrics.net:/etc/nginx/vhost.d/www.ganache.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.staging.ganache.ecentrics.net:/etc/nginx/vhost.d/www.staging.ganache.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.rendezvous.ecentrics.net:/etc/nginx/vhost.d/www.rendezvous.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.contracts.concordia.ecentrics.net:/etc/nginx/vhost.d/www.contracts.concordia.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.staging.contracts.concordia.ecentrics.net:/etc/nginx/vhost.d/www.staging.contracts.concordia.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.pinner.concordia.ecentrics.net:/etc/nginx/vhost.d/www.pinner.concordia.ecentrics.net_location:ro
- ./nginx-reverse-proxy-confs/www.staging.pinner.concordia.ecentrics.net:/etc/nginx/vhost.d/www.staging.pinner.concordia.ecentrics.net_location:ro
# Letsencrypt automated creation, renewal and use of Let's Encrypt certificates
# Reference:

64
nginx-reverse-proxy-confs/redirect.conf

@ -1,64 +0,0 @@
server {
server_name www.ecentrics.net;
return 301 $scheme://ecentrics.net$request_uri;
}
server {
server_name www.jenkins.ecentrics.net;
return 301 $scheme://jenkins.ecentrics.net$request_uri;
}
server {
server_name www.concordia.ecentrics.net;
return 301 $scheme://concordia.ecentrics.net$request_uri;
}
server {
server_name www.staging.concordia.ecentrics.net;
return 301 $scheme://staging.concordia.ecentrics.net$request_uri;
}
server {
server_name www.guide.concordia.ecentrics.net;
return 301 $scheme://guide.concordia.ecentrics.net$request_uri;
}
server {
server_name www.staging.guide.concordia.ecentrics.net;
return 301 $scheme://staging.guide.concordia.ecentrics.net$request_uri;
}
server {
server_name www.ganache.ecentrics.net;
return 301 $scheme://ganache.ecentrics.net$request_uri;
}
server {
server_name www.staging.ganache.ecentrics.net;
return 301 $scheme://staging.ganache.ecentrics.net$request_uri;
}
server {
server_name www.rendezvous.ecentrics.net;
return 301 $scheme://rendezvous.ecentrics.net$request_uri;
}
server {
server_name www.contracts.concordia.ecentrics.net;
return 301 $scheme://contracts.concordia.ecentrics.net$request_uri;
}
server {
server_name www.staging.contracts.concordia.ecentrics.net;
return 301 $scheme://staging.contracts.concordia.ecentrics.net$request_uri;
}
server {
server_name www.pinner.concordia.ecentrics.net;
return 301 $scheme://pinner.concordia.ecentrics.net$request_uri;
}
server {
server_name www.staging.pinner.concordia.ecentrics.net;
return 301 $scheme://staging.pinner.concordia.ecentrics.net$request_uri;
}

1
nginx-reverse-proxy-confs/www.concordia.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://concordia.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.contracts.concordia.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://contracts.concordia.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.ganache.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://ganache.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.guide.concordia.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://guide.concordia.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.pinner.concordia.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://pinner.concordia.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.rendezvous.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://rendezvous.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.staging.concordia.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://staging.concordia.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.staging.contracts.concordia.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://staging.contracts.concordia.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.staging.ganache.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://staging.ganache.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.staging.guide.concordia.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://staging.guide.concordia.ecentrics.net/$1 permanent;

1
nginx-reverse-proxy-confs/www.staging.pinner.concordia.ecentrics.net

@ -0,0 +1 @@
rewrite ^/(.*)$ http://staging.pinner.concordia.ecentrics.net/$1 permanent;
Loading…
Cancel
Save