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

how could i config my nginx #34

Closed
HakunamatataLeo opened this issue May 10, 2024 · 1 comment
Closed

how could i config my nginx #34

HakunamatataLeo opened this issue May 10, 2024 · 1 comment

Comments

@HakunamatataLeo
Copy link

image

my nginx.conf

server {
    listen       8000;
    server_name  localhost;

   location = /hsk {
         proxy_pass http://127.0.0.1:8501;
    }

    location ^~ /static {
        proxy_pass http://127.0.0.1:8501/static/;
    }

    location = /_stcore/health {
        proxy_pass http://127.0.0.1:8501/_stcore/health;
    }

  location = /_stcore/host-config {
        proxy_pass http://127.0.0.1:8501/_stcore/host-config;
    }

    location = /hsk/_stcore/health {
        proxy_pass http://127.0.0.1:8501/_stcore/health;
    }

    location = /hsk/_stcore/host-config {
        proxy_pass http://127.0.0.1:8501/_stcore/host-config;
    }

    location = /_stcore/allowed-message-origins {
        proxy_pass http://127.0.0.1:8501/_stcore/allowed-message-origins;
    }

    location = /hsk/_stcore/stream {
        proxy_pass http://127.0.0.1:8501/_stcore/stream;
        proxy_http_version 1.1;
        proxy_redirect off;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_read_timeout 86400;
    }

add_header Content-Security-Policy "default-src 'self' https: data: 'unsafe-inline';" always;

@gamcoh pls

@gamcoh
Copy link
Owner

gamcoh commented May 10, 2024

I don't think your issue is with nginx, could you share your code please?

@gamcoh gamcoh closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants