diff --git a/test/docker-compose.yml b/test/docker-compose.yml deleted file mode 100644 index 2c16bc0..0000000 --- a/test/docker-compose.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -version: '3.4' - -services: - proxy: - image: public.ecr.aws/nginx/nginx:1.24 - container_name: proxy - volumes: - - ./src/nginx/etc/nginx/nginx.conf:/etc/nginx/nginx.conf - - ./src/nginx/etc/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf - ports: - - "8080:80" - - vscode: - image: analytical-platform.service.justice.gov.uk/code:local - build: - context: ../ - dockerfile: Dockerfile - container_name: vscode diff --git a/test/src/nginx/etc/nginx/conf.d/default.conf b/test/src/nginx/etc/nginx/conf.d/default.conf deleted file mode 100644 index 23f3884..0000000 --- a/test/src/nginx/etc/nginx/conf.d/default.conf +++ /dev/null @@ -1,21 +0,0 @@ -server { - listen 80; - server_name localhost; - - location / { - proxy_pass http://vscode:8080/; - proxy_http_version 1.1; - proxy_redirect off; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $http_host; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-NginX-Proxy true; - proxy_set_header X-Real-IP $remote_addr; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } -} diff --git a/test/src/nginx/etc/nginx/nginx.conf b/test/src/nginx/etc/nginx/nginx.conf deleted file mode 100644 index 5e076aa..0000000 --- a/test/src/nginx/etc/nginx/nginx.conf +++ /dev/null @@ -1,32 +0,0 @@ - -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - - #gzip on; - - include /etc/nginx/conf.d/*.conf; -}