Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / installation / sdnc-web / src / main / resources / http_site.conf
index dd64141..1fe4303 100644 (file)
 # Default server configuration
 #
 server {
-       listen WEBPORT default_server ;
-       listen [::]:WEBPORT default_server;
+    listen WEBPORT default_server ;
+    listen [::]:WEBPORT default_server;
 
-#      root /var/www;
+#   root /var/www;
 
-       index index.html index.htm index.nginx-debian.html;
+    index index.html index.htm index.nginx-debian.html;
 
-       server_name _;
+    server_name _;
 
-       set $sdnrserver "SDNRHOST";
-
-       location ~ ^/$  {
-               return 301 /odlux/index.html;
-       }
-       location ~ /help/$  {
-               try_files /help/$args.json $uri;
-       }
-       location /  {
-               try_files $uri $uri/ @backend;
-       }
-       location /websocket {
-           resolver LOCALDNS;
-               proxy_pass SDNRPROTOCOL://$sdnrserver:SDNRPORT/websocket;
-               proxy_http_version 1.1;
-               proxy_set_header Upgrade $http_upgrade;
-               proxy_set_header Connection "upgrade";
-       }
-       location @backend {
-           resolver LOCALDNS;
-               proxy_pass SDNRPROTOCOL://$sdnrserver:SDNRPORT;
-       }
+    include server_blocks/location.rules;
 
+    gzip on;
+    gzip_min_length 1000;
+    gzip_comp_level 5;
+    gzip_proxied any;
+    gzip_vary on;
+    gzip_types text/plain
+                application/json
+                application/xml
+                application/yang-data+json
+                application/yang-data+xml
+                text/javascript
+                application/javascript;
 }
-