SHARE
TWEET

example

a guest Dec 23rd, 2019 506 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. server {
  3.         listen 80 default_server;
  4.         listen [::]:80 default_server;
  5.         server_name  ?????????????;
  6.         server_tokens off;
  7.         #index index.html;
  8.  
  9.  
  10.     location / {
  11.            # Simple requests
  12.     if ($request_method ~* "(GET|POST)") {
  13.       add_header "Access-Control-Allow-Origin"  *;
  14.     }
  15.  
  16.     # Preflighted requests
  17.     if ($request_method = OPTIONS ) {
  18.       add_header "Access-Control-Allow-Origin"  *;
  19.       add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, HEAD";
  20.       add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept";
  21.       return 200;
  22.     }
  23.  
  24.             proxy_set_header X-Forwarded-Host $host;
  25.         proxy_set_header X-Forwarded-Server $host;
  26.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  27.         proxy_pass http://127.0.0.1:3030/;
  28.     }
  29.  
  30.  
  31.        location /swagger {
  32.         proxy_set_header X-Forwarded-Host $host;
  33.         proxy_set_header X-Forwarded-Server $host;
  34.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  35.         proxy_pass http://127.0.0.1:9090/swagger;
  36.     }
  37.     location /v2/api-docs {
  38.         proxy_set_header X-Forwarded-Host $host;
  39.         proxy_set_header X-Forwarded-Server $host;
  40.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  41.         proxy_pass http://127.0.0.1:9090/v2/api-docs;
  42.     }
  43.     location /activiti-explorer {
  44.         proxy_set_header X-Forwarded-Host $host;
  45.         proxy_set_header X-Forwarded-Server $host;
  46.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  47.         proxy_pass http://127.0.0.1:8080/activiti-explorer;
  48.     }
  49.     location /flowable-modeler {
  50.         proxy_set_header X-Forwarded-Host $host;
  51.         proxy_set_header X-Forwarded-Server $host;
  52.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  53.         proxy_pass http://127.0.0.1:8085/flowable-modeler;
  54.     }
  55.     location /flowable-idm {
  56.         proxy_set_header X-Forwarded-Host $host;
  57.         proxy_set_header X-Forwarded-Server $host;
  58.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  59.         proxy_pass http://127.0.0.1:8085/flowable-idm;
  60.     }
  61.     location /flowable-task {
  62.         proxy_set_header X-Forwarded-Host $host;
  63.         proxy_set_header X-Forwarded-Server $host;
  64.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  65.         proxy_pass http://127.0.0.1:8085/flowable-task;
  66.     }
  67.     location /flowable-admin {
  68.         proxy_set_header X-Forwarded-Host $host;
  69.         proxy_set_header X-Forwarded-Server $host;
  70.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  71.         proxy_pass http://127.0.0.1:8085/flowable-admin;
  72.     }
  73.  
  74.  
  75.    location /nifi {
  76.  
  77.       #auth_basic_user_file /etc/nifi.passwd;
  78.       proxy_pass http://127.0.0.1:9091/nifi;
  79.       proxy_set_header X-Forwarded-Host $host;
  80.       proxy_set_header X-Forwarded-Server $host;
  81.       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  82.  
  83.       proxy_set_header X-ProxyScheme $scheme;
  84.       #proxy_set_header Host dev-oek.gost-group.com;
  85.       proxy_set_header X-ProxyHost dev.lukoil.gost-group.com;
  86.       proxy_set_header X-ProxyContextPath "";
  87.       proxy_set_header X-ProxyPort 80;
  88. #proxy_set_header X-ProxiedEntitiesChain $ssl_client_s_dn;
  89.    }
  90.  
  91.        location /midpoint {
  92.                # First attempt to serve request as file, then
  93.                # as directory, then fall back to displaying a 404.
  94.                #try_files $uri $uri/ =404;
  95.                proxy_pass http://127.0.0.1:8083;
  96.                proxy_set_header Host $http_host;
  97.                proxy_set_header X-Real-IP $remote_addr;
  98.                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  99.        }
  100.  
  101.  
  102.         location /rest {
  103.                 # First attempt to serve request as file, then
  104.                 # as directory, then fall back to displaying a 404.
  105.                 #try_files $uri $uri/ =404;
  106.                 proxy_pass http://127.0.0.1:9090/rest;
  107.                 proxy_set_header Host $http_host;
  108.                 proxy_set_header X-Real-IP $remote_addr;
  109.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  110.                 #root /opt/front-dev/gis-tek-nsi-frontend/dist;
  111.                 #index index.html;
  112.         }
  113.  
  114.  
  115.         location /integration {
  116.     if ($request_method ~* "(GET|POST)") {
  117.       add_header "Access-Control-Allow-Origin"  *;
  118.     }
  119.  
  120.     # Preflighted requests
  121.     if ($request_method = OPTIONS ) {
  122.       add_header "Access-Control-Allow-Origin"  *;
  123.       add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, HEAD";
  124.       add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept";
  125.       return 200;
  126.     }
  127. # First attempt to serve request as file, then
  128.                 # as directory, then fall back to displaying a 404.
  129.                 #try_files $uri $uri/ =404;
  130.                 proxy_pass http://127.0.0.1:9090/integration;
  131.                 proxy_set_header Host $http_host;
  132.                 proxy_set_header X-Real-IP $remote_addr;
  133.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  134.         }
  135.  
  136.  
  137.     location /sys-info {
  138.         proxy_pass http://127.0.0.1:9090/sys-info;
  139.         proxy_http_version 1.1;
  140.         proxy_set_header Upgrade $http_upgrade;
  141.         proxy_set_header Connection "Upgrade";
  142.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  143.     }
  144.  
  145.     location /ref {
  146.         proxy_pass http://127.0.0.1:9090/ref;
  147.         proxy_http_version 1.1;
  148.         proxy_set_header Upgrade $http_upgrade;
  149.         proxy_set_header Connection "Upgrade";
  150.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  151.     }
  152. #service desk
  153.    location /ords/sd {
  154.                 # First attempt to serve request as file, then
  155.                 # as directory, then fall back to displaying a 404.
  156.                 #try_files $uri $uri/ =404;
  157.                 proxy_pass https://support-oek.gost-group.com/ords/sd;
  158.                 proxy_set_header Host $http_host;
  159.                 proxy_set_header X-Real-IP $remote_addr;
  160.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  161.  
  162. }
  163.  
  164.  
  165.  
  166.     error_page   500 502 503 504  /50x.html;
  167.     location = /50x.html {
  168.         root   /usr/share/nginx/html;
  169.     }
  170.  
  171. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top