Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / installation / sdnc-web / src / main / resources / http_site.conf
1 ###
2 # ============LICENSE_START=======================================================
3 # ONAP : ccsdk distribution web
4 # ================================================================================
5 # Copyright (C) 2020 highstreet technologies GmbH Intellectual Property.
6 # All rights reserved.
7 # ================================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #      http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END=========================================================
20 ###
21
22 ##
23 # You should look at the following URL's in order to grasp a solid understanding
24 # of Nginx configuration files in order to fully unleash the power of Nginx.
25 # https://www.nginx.com/resources/wiki/start/
26 # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
27 # https://wiki.debian.org/Nginx/DirectoryStructure
28 #
29 # In most cases, administrators will remove this file from sites-enabled/ and
30 # leave it as reference inside of sites-available where it will continue to be
31 # updated by the nginx packaging team.
32 #
33 # This file will automatically load configuration files provided by other
34 # applications, such as Drupal or Wordpress. These applications will be made
35 # available underneath a path with that package name, such as /drupal8.
36 #
37 # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
38 ##
39
40 # Default server configuration
41 #
42 server {
43     listen WEBPORT default_server ;
44     listen [::]:WEBPORT default_server;
45
46 #   root /var/www;
47
48     index index.html index.htm index.nginx-debian.html;
49
50     server_name _;
51
52     include server_blocks/location.rules;
53
54     gzip on;
55     gzip_min_length 1000;
56     gzip_comp_level 5;
57     gzip_proxied any;
58     gzip_vary on;
59     gzip_types text/plain
60                 application/json
61                 application/xml
62                 application/yang-data+json
63                 application/yang-data+xml
64                 text/javascript
65                 application/javascript;
66 }