[YUNIKORN-1674] Remove references to nginx from yunikorn-web (#109)
Closes: #109
diff --git a/Makefile b/Makefile
index dc79243..14f1ddb 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@
REGISTRY := apache
endif
-# Set the default web port, this must be the same as in the nginx/nginx.conf file.
+# Set the default web port
PORT=9889
# Allow architecture to be overwritten
diff --git a/README.md b/README.md
index 08d5a03..f43bdf6 100644
--- a/README.md
+++ b/README.md
@@ -79,10 +79,7 @@
You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Port configurations
-The default port used for the web server is port 9889 and is set in the `nginx/nginx.conf`.
-
-The port is also referenced in other scripts and configurations to this port also, if you change the port make sure that the other locations are updated:
-- Makefile
+The default port used for the web server is port 9889. If this conflicts in your dev environment, it can be changed in the Makefile.
## How do I contribute code?
See how to contribute code from [this guide](https://yunikorn.apache.org/community/how_to_contribute).
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
deleted file mode 100644
index 429cadf..0000000
--- a/nginx/nginx.conf
+++ /dev/null
@@ -1,51 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-worker_processes auto;
-daemon off;
-error_log stderr error;
-pid /tmp/nginx.pid;
-
-events {
- worker_connections 1024;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- client_body_temp_path /tmp/client_temp;
- proxy_temp_path /tmp/proxy_temp;
- fastcgi_temp_path /tmp/fastcgi_temp;
- uwsgi_temp_path /tmp/uwsgi_temp;
- scgi_temp_path /tmp/scgi_temp;
- sendfile on;
- keepalive_timeout 65;
- access_log off;
- server {
- listen 9889;
- location / {
- root /opt/yunikorn/html;
- index index.html index.htm;
- try_files $uri $uri/ /index.html;
- }
- location /ws {
- proxy_set_header X-Forwarded-Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_pass http://127.0.0.1:9080;
- }
- }
-}