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

华为云L实例Portainer的Nginx配置问题 #607

Closed
zhaojing1987 opened this issue Apr 24, 2024 · 2 comments
Closed

华为云L实例Portainer的Nginx配置问题 #607

zhaojing1987 opened this issue Apr 24, 2024 · 2 comments
Assignees

Comments

@zhaojing1987
Copy link
Contributor

Nginx的配置有问题,导致有些Portainer操作的权限不够,报403错误

<html> <head><title>403 Forbidden</title></head> <body> <center><h1>403 Forbidden</h1></center> <hr><center>nginx</center> </body> </html>

现在修改了Nginx的配置为:

location / {
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-Scheme $scheme;
      proxy_set_header X-Forwarded-Proto  $scheme;
      proxy_set_header X-Forwarded-For    $remote_addr;
      proxy_set_header X-Real-IP		$remote_addr;
      proxy_set_header Accept-Encoding \"\";
      proxy_pass  http://127.0.0.1:9091;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection $http_connection;
   }

测试可用。

@chendelin1982
Copy link
Contributor

test Portainer at Websoft9 Appstore

@qiaofeng1227
Copy link
Contributor

在软件商店下安装portainer重现编排后一切功能正常

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