Skip to content

Reverse Proxy with nginx does not seem to be working! Where am I going wrong? #944

Closed

Description

@cypht

Hello,

I have scrypted and nginx running is separate containers. Trying to reverse proxy to scrypted but it just gives a 404 error. What am I doing wrong?

server {
server_name scrypted.gsdhm.net;
listen 80;
access_log /var/log/nginx/access.log;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name scrypted.gsdhm.net;

include /etc/nginx/ssl/*;

location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Ssl on;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_pass https://172.168.22.65:10443;
}

}

Activity

  1. Repository owner locked and limited conversation to collaborators on Jul 11, 2023
  2. converted this issue into a discussion #945 on Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions