Realm 对象服务器的 Https 代理不起作用

王嘉尔

我似乎无法获得Realm Object Server运行的https代理。我遵循了文档中的每一步,其中包括编辑 configuration.yml 文件以进行更改:

proxy.https.enable: true  
proxy.https.listen_address: ::  
proxy.https.listen_port: 9443  
proxy.https.certificate_path: 'cert_path'
proxy.https.private_key_path: 'private_key_path'

当我访问http://example.com:9080时很好,但访问https://example.com:9443不起作用 - 我已经验证路径正确,并且证书/私钥组合有效。

任何配置此功能的帮助将不胜感激,因为我正在尝试使应用程序符合 Apple 的 ATS 要求!

拉杜·图图亚努

Realm Object Server 由“realm”用户启动,您应该检查该用户是否具有访问证书的权限。

这是使用letencrypt设置 https 的说明列表在 Ubuntu 16.04 上,也许它有助于确定您的问题:

  1. 安装 ROS、letencrypt 并生成证书

curl -s https://packagecloud.io/install/repositories/realm/realm/script.deb.sh | sudo bash

apt-get install realm-object-server-developer
apt-get install letsencrypt

letsencrypt certonly --standalone -d ${mydomain.com}

# set up permissions for the realm user on /etc/letsencrypt.
sudo groupadd ssl
sudo usermod -a -G ssl realm
sudo chgrp -R ssl /etc/letsencrypt
sudo chmod -R g=rX /etc/letsencrypt
  1. 编辑配置以在“代理”部分启用 ssl

部分/etc/realm/configuration.yml

  https:
    ## Whether or not to enable the HTTPS proxy module. It enables multiplexing requests
    ## by forwarding incoming requests on a single port to all services.
    ## Note that even if it enabled, the HTTPS proxy will only start if supplied
    ## with a valid pair of certificates through certificate_path and private_key_path below.
    enable: true

    ## The path to the certificate and private keys (in PEM format) that will be used
    ## to set up the HTTPS server accepting connections.
    ## These configuration options are MANDATORY to start the HTTPS proxy module.
    certificate_path: '/etc/letsencrypt/live/${mydomain.com}/cert.pem'
    private_key_path: '/etc/letsencrypt/live/${mydomain.com}/privkey.pem'

    ## The address/interface on which the HTTPS proxy module should listen. This defaults
    ## to 127.0.0.1. If you wish to listen on all available interfaces,
    ## uncomment the following line.
    listen_address: '::'

    ## The port that the HTTPS proxy module should bind to.
    # listen_port: 9443
  1. 连接到仪表板并创建一个帐户。( 前往https://${mydomain.com}:9443)

  2. 转到浏览器并选择“连接到对象服务器” 输入realms://${mydomain.com}:9443服务器 URL 以及您刚刚创建的用户名和密码。您应该会看到一个领域列表。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Ember-Cli服务器-代理不起作用

来自分类Dev

JavaScript代理对象不起作用

来自分类Dev

Grunt Connect代理重写在https中不起作用

来自分类Dev

除非首字母大写,否则Mod_rewrite对于某些规则不起作用?HTTPS服务器

来自分类Dev

从WCF客户端连接到服务器的问题-HTTPS终结点-在本地Dev上有效,但在服务器上不起作用

来自分类Dev

Webpack开发服务器代理路由器选项不起作用

来自分类Dev

Realm 似乎不起作用

来自分类Dev

HTTPS代理服务器的带宽测试

来自分类Dev

代理服务器的HTTPS流量证书

来自分类Dev

通过用于Gitlab服务器的Nginx代理的Git克隆不起作用

来自分类Dev

当节点http服务器运行时,nginx反向代理似乎不起作用

来自分类Dev

通过用于Gitlab服务器的Nginx代理的Git克隆不起作用

来自分类Dev

在 Swift 中检查 Realm 对象服务器状态

来自分类Dev

无法从 Swift 中的 Realm 对象服务器获取数据

来自分类Dev

Typesafe激活器在公司代理下不起作用

来自分类Dev

https的ProxyPass不起作用

来自分类Dev

https的RewriteRule不起作用

来自分类Dev

deleteObject在Realm中不起作用

来自分类Dev

具有身份验证的代理服务器在命令行上不起作用

来自分类Dev

Java https服务器

来自分类Dev

HTTPS检查服务器

来自分类Dev

Realm Mobile Platform的服务器复制

来自分类Dev

通过HTTPS和HTTP访问时WCF服务不起作用

来自分类Dev

如何使Elastic Beanstalk Nginx支持的代理服务器从HTTP自动重定向到HTTPS?

来自分类Dev

具有Apache Camel的简单HTTPS代理服务器

来自分类Dev

代理服务器可以在HTTPS请求中插入标头吗?

来自分类Dev

代理服务器为“ HTTPS”类型是什么意思?

来自分类Dev

如何在客户端上设置https到代理服务器的路由

来自分类Dev

微小的 mce 编辑器在 https url 上不起作用

Related 相关文章

  1. 1

    Ember-Cli服务器-代理不起作用

  2. 2

    JavaScript代理对象不起作用

  3. 3

    Grunt Connect代理重写在https中不起作用

  4. 4

    除非首字母大写,否则Mod_rewrite对于某些规则不起作用?HTTPS服务器

  5. 5

    从WCF客户端连接到服务器的问题-HTTPS终结点-在本地Dev上有效,但在服务器上不起作用

  6. 6

    Webpack开发服务器代理路由器选项不起作用

  7. 7

    Realm 似乎不起作用

  8. 8

    HTTPS代理服务器的带宽测试

  9. 9

    代理服务器的HTTPS流量证书

  10. 10

    通过用于Gitlab服务器的Nginx代理的Git克隆不起作用

  11. 11

    当节点http服务器运行时,nginx反向代理似乎不起作用

  12. 12

    通过用于Gitlab服务器的Nginx代理的Git克隆不起作用

  13. 13

    在 Swift 中检查 Realm 对象服务器状态

  14. 14

    无法从 Swift 中的 Realm 对象服务器获取数据

  15. 15

    Typesafe激活器在公司代理下不起作用

  16. 16

    https的ProxyPass不起作用

  17. 17

    https的RewriteRule不起作用

  18. 18

    deleteObject在Realm中不起作用

  19. 19

    具有身份验证的代理服务器在命令行上不起作用

  20. 20

    Java https服务器

  21. 21

    HTTPS检查服务器

  22. 22

    Realm Mobile Platform的服务器复制

  23. 23

    通过HTTPS和HTTP访问时WCF服务不起作用

  24. 24

    如何使Elastic Beanstalk Nginx支持的代理服务器从HTTP自动重定向到HTTPS?

  25. 25

    具有Apache Camel的简单HTTPS代理服务器

  26. 26

    代理服务器可以在HTTPS请求中插入标头吗?

  27. 27

    代理服务器为“ HTTPS”类型是什么意思?

  28. 28

    如何在客户端上设置https到代理服务器的路由

  29. 29

    微小的 mce 编辑器在 https url 上不起作用

热门标签

归档