diff --git a/docker-compose.yml b/docker-compose.yml index 5e3168f..621bed0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,7 +26,7 @@ services: restart: always labels: - traefik.enable=true - - traefik.http.routers.ipv6-test.rule=Host(`test.thehrz.net`) + - traefik.http.routers.ipv6-test.rule=Host(`test.ipv6test.online`) || Host(`4.ipv6test.online`) || Host(`6.ipv6test.online`) - traefik.http.routers.ipv6-test.entrypoints=web,websecure - traefik.http.routers.ipv6-test.tls.certresolver=letsencrypt networks: diff --git a/nginx/conf.d/4.conf b/nginx/conf.d/4.conf new file mode 100644 index 0000000..66bdfca --- /dev/null +++ b/nginx/conf.d/4.conf @@ -0,0 +1,20 @@ +server { + listen 80; + server_name 4.ipv6test.online; + + gzip on; + gzip_min_length 1k; + gzip_buffers 4 16k; + gzip_http_version 1.1; + gzip_comp_level 9; + gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/json; + gzip_disable "MSIE [1-6]\."; + gzip_vary on; + + location / { + proxy_pass http://ipv6-test-backend:8080/; + proxy_read_timeout 60; + proxy_connect_timeout 60; + proxy_redirect off; + } +} \ No newline at end of file diff --git a/nginx/conf.d/6.conf b/nginx/conf.d/6.conf new file mode 100644 index 0000000..c65d327 --- /dev/null +++ b/nginx/conf.d/6.conf @@ -0,0 +1,17 @@ +server { + listen [::]:80; + server_name 6.ipv6test.online; + + gzip on; + gzip_min_length 1k; + gzip_buffers 4 16k; + gzip_http_version 1.1; + gzip_comp_level 9; + gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/json; + gzip_disable "MSIE [1-6]\."; + gzip_vary on; + + location / { + proxy_pass http://ipv6-test-backend:8080/; + } +} \ No newline at end of file diff --git a/nginx/conf.d/root.conf b/nginx/conf.d/root.conf new file mode 100644 index 0000000..c6d13a6 --- /dev/null +++ b/nginx/conf.d/root.conf @@ -0,0 +1,20 @@ +server { + listen [::]:80; + server_name ipv6test.online; + + gzip on; + gzip_min_length 1k; + gzip_buffers 4 16k; + gzip_http_version 1.1; + gzip_comp_level 9; + gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/json; + gzip_disable "MSIE [1-6]\."; + gzip_vary on; + + location / { + proxy_pass http://ipv6-test-frontend:3000; + proxy_read_timeout 60; + proxy_connect_timeout 60; + proxy_redirect off; + } +} \ No newline at end of file diff --git a/nginx/conf.d/test.conf b/nginx/conf.d/test.conf index 3df2a1d..cfa472f 100644 --- a/nginx/conf.d/test.conf +++ b/nginx/conf.d/test.conf @@ -1,7 +1,7 @@ server { listen 80; listen [::]:80; - server_name test.thehrz.net; + server_name test.ipv6test.online; gzip on; gzip_min_length 1k; @@ -13,13 +13,6 @@ server { gzip_vary on; location / { - proxy_pass http://ipv6-test-frontend:3000; - proxy_read_timeout 60; - proxy_connect_timeout 60; - proxy_redirect off; - } - - location ^~ /api/ { proxy_pass http://ipv6-test-backend:8080/; } } \ No newline at end of file