2 # ============LICENSE_START=======================================================
3 # ONAP : ccsdk distribution web
4 # ================================================================================
5 # Copyright (C) 2020 highstreet technologies GmbH Intellectual Property.
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
12 # http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
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
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.
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.
37 # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
40 # Default server configuration
43 listen WEBPORT ssl default_server ;
44 listen [::]:WEBPORT ssl default_server;
48 # listen 443 ssl default_server;
49 # listen [::]:443 ssl default_server;
51 # Note: You should disable gzip for SSL traffic.
52 # See: https://bugs.debian.org/773332
54 # Read up on ssl_ciphers to ensure a secure configuration.
55 # See: https://bugs.debian.org/765782
57 # Self signed certs generated by the ssl-cert package
58 # Don't use them in a production server!
60 # include snippets/snakeoil.conf;
62 ssl_certificate SSL_CERT_DIR/SSL_CERTIFICATE;
63 ssl_certificate_key SSL_CERT_DIR/SSL_CERTIFICATE_KEY;
67 index index.html index.htm index.nginx-debian.html;
72 return 301 /odlux/index.html;
75 try_files /help/$args.json $uri;
77 location ~ ^/transportpce {
78 try_files $uri $uri/ @backend-transportpce;
80 location ~ ^/topology {
81 try_files $uri $uri/ @backend-topology;
84 try_files $uri $uri/ @backend-tiles;
87 try_files $uri $uri/ @backend;
89 location ^/websocket$ {
90 proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT/websocket;
91 proxy_http_version 1.1;
92 proxy_set_header Upgrade $http_upgrade;
93 proxy_set_header Connection "upgrade";
96 proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
98 location @backend-transportpce {
101 location @backend-topology {
104 location @backend-tiles {