how to reverse proxy shinobi



  • is there a way to rexerse proxy shinobi? i want to connect using an address like "domain.com/shinobi"

    edit
    i use nginx with certbot
    ssl is already setup

    i'm just looking for how to change shinobi's web url



  • working ubuntu 16.04 nginx proxy. ill test the reserve proxy later and post below

    server {
      listen      80;
      server_name sub_domain.Domain.com;
    
      # Redirect all non-https requests
      rewrite ^ https://$host$request_uri? permanent;
    }
    
    server {
      listen      443 ssl http2;
    
      server_name sub_domain.Domain.com;
    
      # Certificate(s) and private key
      ssl_certificate /etc/letsencrypt/live/Domain.com/fullchain.pem;
      ssl_certificate_key /etc/letsencrypt/live/Domain.com/privkey.pem;
    
      # openssl dhparam 4096 -out /etc/ssl/dhparam.pem
      ssl_dhparam /etc/ssl/certs/dhparam.pem;
    
      ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
      ssl_prefer_server_ciphers on;
      ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
    
      ssl_session_cache shared:TLS:2m;
    
      # OCSP stapling
      ssl_stapling on;
      ssl_stapling_verify on;
      resolver 1.1.1.1; # 1dot1dot1dot1.cloudflare-dns.com
    
      # Set HSTS to 365 days
      add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload' always;
    
        location / {
                proxy_pass http://192.168.0.10:8080/;
                 proxy_http_version 1.1;
                 proxy_redirect off;
                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                 proxy_set_header X-Forward-Proto http;
                 proxy_set_header Host $http_host;
                 proxy_set_header Upgrade $http_upgrade;
                 proxy_set_header Connection "upgrade";
                 proxy_set_header X-NginX-Proxy true;
                 proxy_set_header X-Real-IP $remote_addr;
        }
        location /admin {
                 auth_basic off;
        }
        location /super {
                 auth_basic off;
        }
    }
    

    nginx reverse proxy

        location /shinobi/ {
                proxy_pass http://192.168.0.10:8080/;
                 proxy_http_version 1.1;
                 proxy_redirect off;
                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                 proxy_set_header X-Forward-Proto http;
                 proxy_set_header Host $http_host;
                 proxy_set_header Upgrade $http_upgrade;
                 proxy_set_header Connection "upgrade";
                 proxy_set_header X-NginX-Proxy true;
                 proxy_set_header X-Real-IP $remote_addr;
        }
    

    edit: added reverse proxy


 

Looks like your connection to Shinobi Forum was lost, please wait while we try to reconnect.