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

Logging in breaks subsequent requests w/ Authorization header #79

Closed
dejan9393 opened this issue Jun 10, 2019 · 2 comments
Closed

Logging in breaks subsequent requests w/ Authorization header #79

dejan9393 opened this issue Jun 10, 2019 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@dejan9393
Copy link

It seems that after logging in, if the authenticated GitLab user belongs to a lot of groups/projects, the JWT that is used in the Authorization header can get to a size large enough to cause net::ERR_CONNECTION_CLOSED errors.
Has anyone else run into this?

@dejan9393
Copy link
Author

I've managed to find a workaround by increasing the max http header size in node and a few extra config lines for my reverse proxy (nginx):

Added

# docker-compose.yml

services:
  verdaccio:
    ...
    environment:
      - NODE_OPTIONS=--max-http-header-size=32000

to docker-compose.yml

and

# /etc/nginx/conf.d/verdaccio.conf

server {
  listen 443 ssl;
  ...
  http2_max_field_size 32k;
  http2_max_header_size 32k;
  ...
}

to the server block in my NGINX verdaccio config

@dlouzan dlouzan added the duplicate This issue or pull request already exists label Jun 11, 2019
@dlouzan
Copy link
Collaborator

dlouzan commented Jun 11, 2019

This looks like a duplicate of #75, we'll be taking a look at this in the next weeks, the integration with verdaccio 4.x will be improved.

Thanks for the nginx extras, that might come handy when documenting solutions for this.

@dlouzan dlouzan closed this as completed Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants