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

nginx proxy wss #35

Open
zhongshanliyu opened this issue Jan 3, 2022 · 2 comments
Open

nginx proxy wss #35

zhongshanliyu opened this issue Jan 3, 2022 · 2 comments

Comments

@zhongshanliyu
Copy link

nginx proxy need add

location /realtime/ {
proxy_pass http://outline:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}

@VityaSchel
Copy link

still getting 400 http error

@lexermal
Copy link

I managed to get it running by adapting the default.conf with this:


server {
  listen        80;
  client_max_body_size 100m;

  location /realtime/ {
    proxy_pass http://outline_main_container:3000;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
  }

  location /collaboration/ {
    proxy_pass http://outline_main_container:3000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
  }


  # Proxy requests to the bucket "outline" to MinIO server running on port 9000
  location /outline-bucket {
    include /etc/nginx/conf.d/include/proxy.conf;
    proxy_pass http://minio:9000;
  }

  # Proxy any other request to the application server running on port 9001
  location / {
    include /etc/nginx/conf.d/include/proxy.conf;
    proxy_pass http://outline_main_container:3000;
  }
}

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

3 participants