No, there is no difference.

The routing[:endpopint_*] are just "shortcuts" to the second example.

In practice, app[:configuration] should only be used for options that does 
not have a "shortcut" option yet.
Best practice is to always use the shortcut option, if available.

Regards,
Daniele

On Tuesday, August 18, 2015 at 6:23:20 AM UTC+8, Dmitri Toubelis wrote:
>
> Yep, I think that was the problem since https redirect was enabled. 
> However, is there any difference between following two options:
>
> routing[:endpoint_scheme] = 'https'
> routing[:endpoint_host] = 'scalr.example.com'
>
> and:
>
> app[:configuration] = {
>   :scalr => {
>     :endpoint => {
>       :scheme => 'https',
>       :host => 'scalr.example.com',
>     },
> }
>
> Are they both do the same? What is the recommended way?
>
>
> On Monday, August 17, 2015 at 5:39:30 PM UTC-4, DicsyDel wrote:
>>
>> You also need to add: 
>>
>> routing[:endpoint_scheme] = 'https' 
>>
>> Regards, 
>> Igor 
>>
>>
>>
>> On 17 August 2015 at 14:20, Dmitri Toubelis <[email protected]> wrote: 
>> > That is all I did: 
>> > 
>> > proxy[:ssl_enable] = true 
>> > proxy[:ssl_redirect] = true 
>> > proxy[:ssl_cert_path] = '/etc/ssl/certs/server-chain.pem' 
>> > proxy[:ssl_key_path] = '/etc/ssl/private/server-key.pem' 
>> > 
>> > 
>> > On Monday, August 17, 2015 at 4:41:36 PM UTC-4, DicsyDel wrote: 
>> >> 
>> >> Dmitri, 
>> >> 
>> >> Can you please let me know how you've configured HTTPs, what settings 
>> >> you've added to scalr-server.rb? 
>> >> 
>> >> Thanks, 
>> >> Igor 
>> >> 
>> >> On 17 August 2015 at 07:43, Dmitri Toubelis <[email protected]> 
>> wrote: 
>> >> > No, no changes to secrets. I actually disabled https to investigate 
>> this 
>> >> > issue further and it works again without https. 
>> >> > 
>> >> > On Monday, August 17, 2015 at 1:21:22 AM UTC-4, Daniele Testa wrote: 
>> >> >> 
>> >> >> Hi! 
>> >> >> 
>> >> >> Did you make any changes to the scalr-server-secrets.json file? 
>> >> >> 
>> >> >> Regards, 
>> >> >> Daniele 
>> >> >> 
>> >> >> 
>> >> >> On Monday, August 17, 2015 at 1:12:13 PM UTC+8, Dmitri Toubelis 
>> wrote: 
>> >> >>> 
>> >> >>> I'm testing Scalr open source 5.8.29 and I set it up and I was 
>> able to 
>> >> >>> create and start instances in amazon cloud. Then I followed 
>> >> >>> instructions 
>> >> >>> from you wiki on how to enable SSL/TLS and I was able to loging 
>> into 
>> >> >>> Scalr 
>> >> >>> web interface in web browser via https (redirect is enabled as 
>> well). 
>> >> >>> Right 
>> >> >>> after that if I start any new instance it will stay in Pending 
>> state 
>> >> >>> it is 
>> >> >>> terminated upon timeout. I was able to log in into the new 
>> instance 
>> >> >>> and 
>> >> >>> check Slaraizr log files. I found the following: 
>> >> >>> 
>> >> >>> ... 
>> >> >>> 2015-08-16 21:58:53,532-07:00 - WARNING - 
>> >> >>> scalarizr.messaging.p2p.producer - Message 'HostInit' not 
>> delivered 
>> >> >>> (message_id: 319dc9f3-0f9b-44f8-a677-f73388e2902f) 
>> >> >>> 2015-08-16 21:58:53,533-07:00 - WARNING - 
>> >> >>> scalarizr.messaging.p2p.producer - Cannot authenticate on message 
>> >> >>> server. 
>> >> >>> 401 Client Error: Signature doesn't match 
>> >> >>> ... 
>> >> >>> 
>> >> >>> What did I do wrong? 
>> >> > 
>> >> > -- 
>> >> > You received this message because you are subscribed to the Google 
>> >> > Groups 
>> >> > "scalr-discuss" group. 
>> >> > To unsubscribe from this group and stop receiving emails from it, 
>> send 
>> >> > an 
>> >> > email to [email protected]. 
>> >> > For more options, visit https://groups.google.com/d/optout. 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "scalr-discuss" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to [email protected]. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to