From a6ecd3d6e1395a241d8e3ab7ca02b5cc6176c8c2 Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Wed, 8 Dec 2021 10:13:58 +0100 Subject: [PATCH] delete docker-compose.yml and nginx.conf (now in server/README.md) --- docker-compose.yml | 23 ----------------------- nginx.conf | 26 -------------------------- 2 files changed, 49 deletions(-) delete mode 100644 docker-compose.yml delete mode 100644 nginx.conf diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 0a65def9..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,23 +0,0 @@ -version: "3" -services: - oxigraph: - # image: ghcr.io/oxigraph/oxigraph - ## To build from local source code: - build: - context: . - dockerfile: server/Dockerfile - volumes: - - ./data:/data - - nginx-auth: - image: nginx:1.21.4 - environment: - - OXIGRAPH_USER=oxigraph - - OXIGRAPH_PASSWORD=oxigraphy - volumes: - - ./nginx.conf:/etc/nginx/nginx.conf - ## For multiple users: uncomment this line to mount a pre-generated .htpasswd - # - ./.htpasswd:/etc/nginx/.htpasswd - ports: - - 7878:7878 - entrypoint: "bash -c 'echo -n $OXIGRAPH_USER: >> /etc/nginx/.htpasswd && echo $OXIGRAPH_PASSWORD | openssl passwd -stdin -apr1 >> /etc/nginx/.htpasswd && /docker-entrypoint.sh nginx'" \ No newline at end of file diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 3405c8ef..00000000 --- a/nginx.conf +++ /dev/null @@ -1,26 +0,0 @@ -daemon off; -events { - worker_connections 1024; -} -http { - server { - server_name localhost; - listen 7878; - rewrite ^/(.*) /$1 break; - proxy_ignore_client_abort on; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header Access-Control-Allow-Origin "*"; - location ~ ^(/|/query)$ { - proxy_pass http://oxigraph:7878; - proxy_pass_request_headers on; - } - location ~ ^(/update|/store)$ { - auth_basic "Oxigraph Administrator's Area"; - auth_basic_user_file /etc/nginx/.htpasswd; - proxy_pass http://oxigraph:7878; - proxy_pass_request_headers on; - } - } -} \ No newline at end of file