Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reproduce nginx configuration #3817

Open
mr-biggles opened this issue Jun 21, 2024 · 0 comments
Open

reproduce nginx configuration #3817

mr-biggles opened this issue Jun 21, 2024 · 0 comments
Labels

Comments

@mr-biggles
Copy link

mr-biggles commented Jun 21, 2024

Hello, I would like to reproduce this configuration from nginx to Nginx proxy manager.

Can you please help me?

upstream backend_sharry{
    server 127.0.0.1;
}

# redirect all http traffic to https
server {
  listen 80;
  server_name    www.upload.site.com upload.site.com;
  return 301 https://$host$request_uri;
}

server {
    listen    443 ssl;
    server_name    upload.site.com;
    ssl_certificate /etc/nginx/cert/SSL.crt;
    ssl_certificate_key /etc/nginx/cert/PK.key;

    location / {
        include proxy_params;
       # proxy_pass http://127.0.0.1:3000;
        client_max_body_size 1g;
        proxy_send_timeout  30;
        proxy_set_header    X-Real-IP $remote_addr;
        proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header    X-Forwarded-Proto $scheme;
        proxy_read_timeout  90;
        proxy_pass http://127.0.0.1:5100$request_uri;
}
location =/ {
satisfy any;
   allow 0.0.0.0/29;
   allow 0.0.0.0/29;
   allow 0.0.0.0/30;
   allow 0.0.0.0/24;
   allow 0.0.0.0;
   allow 0.0.0.0;
   allow 0.0.0.0/24;
   deny all;

    }


}

0.0.0.0 are my ip public or I want to let access to the page

Thx

@mr-biggles mr-biggles added the bug label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant