Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

PAI https配置#5076

Merged
hzy46 merged 6 commits intomicrosoft:masterfrom
vvfreesoul:zgw_https_cn
Nov 12, 2020
Merged

PAI https配置#5076
hzy46 merged 6 commits intomicrosoft:masterfrom
vvfreesoul:zgw_https_cn

Conversation

@vvfreesoul
Copy link
Contributor

完整版

@coveralls
Copy link

coveralls commented Nov 11, 2020

Coverage Status

Coverage remained the same at 34.223% when pulling c41ce5a on vvfreesoul:zgw_https_cn into 5fbefb8 on microsoft:master.

如果您是第一次配置,dev-box容器内可能不存在`services-configuration.yaml`。您应该按照以下过程来更改配置文件并使其生效。关闭pylon service,将OpenPAI的配置文件`services-configuration.yaml`拉取到本地,更改配置文件,上传配置文件,重新启动pylon service。您需要的命令依次为:
```bash
./paictl.py service stop -n pylon
./paictl.py config pull -o <config-folder>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add vim <config-folder>/services-configuration.yaml after ./paictl.py config pull -o <config-folder>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

key_name: FileName.key
key_path: /home/ssl/FileName.key
```
到此,您已经配好了自签名证书,重启pylon service,可以通过https来访问OpenPAI。
Copy link
Contributor

@hzy46 hzy46 Nov 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

重启pylon service,您就可以通过https来访问OpenPAI了。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


## <div id="how-to-set-up-https">如何设置HTTPS访问</div>

为pylon配置https证书您需要先获得数字证书,然后将数字证书相关文件保存到dev-box容器中,在dev-box内您可以找到`services-configuration.yaml`这个配置文件,然后您需要把已经保存的数字证书的文件路径配置到`services-configuration.yaml`文件中。您可以选择自签名证书和由CA机构颁发的证书,接下来将首先演示自签名证书的配置过程。两种证书的配置过程是近似的。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

自签名证书或由CA机构颁发的证书

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants