deploying-unreal-engine-pixel-streaming-server-on-ec2
deploying-unreal-engine-pixel-streaming-server-on-ec2 copied to clipboard
How to use AWS certificates to serve Pixel Streaming in https?
We need to serve the Pixel Streaming in an iframe inside our page served via HTTPS. But due to the browser's security policy, we need to load the Pixel Streaming page as HTTPS as well.
How can we get the key.pem and cert.pem files from AWS certificates?
BUMP. I also need this as well. Also trying to do an iframe embed.
Hi @NovySan. I discovered that it's possible to create a load balancer to redirect https requests to http only instances.
Hi @NovySan. I discovered that it's possible to create a load balancer to redirect https requests to http only instances.
Does that allow you to load in an iframe? Can you share how this is done?
@NovySan I will try to explain it with what I remember:
Let's say you have an ec2 machine which you can access with the address http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com/ You can create an iframe pointing to it to access the page if the hosting page is served as HTTP.
In ec2, it's possible to create a https://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com load balancer to point to http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com, which can then can be served as https and used in an iframe in a https hosting page. (it ofc requires a few things like creating the aws certificate and other things, but it's pretty straightforward)
I can go through my project to answer any question you have, but I suggest you to give it a try first because it will consume a bit of my time to get my credentials back.
I'll give it a try! Thanks.
On Wed, Jul 21, 2021 at 11:58 AM Danilo Guanabara @.***> wrote:
@NovySan https://github.com/NovySan I will try to explain it with what I remember:
Let's say you have an ec2 machine which you can access with the address http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com/ You can create an iframe pointing to it to access the page if the hosting page is served as HTTP.
In ec2, it's possible to create a https load balancer to point to http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com, which can now can be served as https and used in an iframe in a https hosting page.
I can go through my project to answer any question you have, but I suggest you to give it a try first because it will consume a bit of my time to get my credentials back.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-samples/deploying-unreal-engine-pixel-streaming-server-on-ec2/issues/8#issuecomment-884302762, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMHCLTCVBNHUVW7Z5PDWVLTY3VEBANCNFSM423HYUYQ .
Just wondering if you had success or found another solution?
@NovySan I will try to explain it with what I remember:
Let's say you have an ec2 machine which you can access with the address http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com/ You can create an iframe pointing to it to access the page if the hosting page is served as HTTP.
In ec2, it's possible to create a https://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com load balancer to point to http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com, which can then can be served as https and used in an iframe in a https hosting page. (it ofc requires a few things like creating the aws certificate and other things, but it's pretty straightforward)
I can go through my project to answer any question you have, but I suggest you to give it a try first because it will consume a bit of my time to get my credentials back.
Does this solution still work with an iframe?
Yes
On Thu, Jan 6, 2022 at 11:24 AM Noah @.***> wrote:
@NovySan https://github.com/NovySan I will try to explain it with what I remember:
Let's say you have an ec2 machine which you can access with the address http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com/ You can create an iframe pointing to it to access the page if the hosting page is served as HTTP.
In ec2, it's possible to create a https://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com load balancer to point to http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com, which can then can be served as https and used in an iframe in a https hosting page. (it ofc requires a few things like creating the aws certificate and other things, but it's pretty straightforward)
I can go through my project to answer any question you have, but I suggest you to give it a try first because it will consume a bit of my time to get my credentials back.
Does this solution still work with an iframe?
— Reply to this email directly, view it on GitHub https://github.com/aws-samples/deploying-unreal-engine-pixel-streaming-server-on-ec2/issues/8#issuecomment-1006126196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5GSMSINTFU4AXNTTZ5RN3UUTAKTANCNFSM423HYUYQ . You are receiving this because you are subscribed to this thread.Message ID: <aws-samples/deploying-unreal-engine-pixel-streaming-server-on-ec2/issues/8/1006126196 @github.com>
@NovySan I will try to explain it with what I remember:
Let's say you have an ec2 machine which you can access with the address http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com/ You can create an iframe pointing to it to access the page if the hosting page is served as HTTP.
In ec2, it's possible to create a https://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com load balancer to point to http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com, which can then can be served as https and used in an iframe in a https hosting page. (it ofc requires a few things like creating the aws certificate and other things, but it's pretty straightforward)
I can go through my project to answer any question you have, but I suggest you to give it a try first because it will consume a bit of my time to get my credentials back.
Hi I tried to this few times but it never worked for me. I must have messed up load balancer/target group/certificate.. bla bla.. Anyway, a tutorial would be greately appreciated.
Many thanks in advance
@notdanilo Have you tried the ready-made MetaEditor solution on React.js to demonstrate Unreal Engine in a browser with Pixel Streaming technology?
Hello guys is there a way to get the whole thing running via ssl? The pixel streaming is accessible via http, but not with Https.
Hello guys is there a way to get the whole thing running via ssl? The pixel streaming is accessible via http, but not with Https.
I too am looking for a solution for that
I am trying to get that working as well. There is a setting in the config.json file that is useHTTPS, which I set to true. I have also edited cirrus.js to reference our SSL certificate. The signaling server runs, but we don’t see: Streamer connected: ::1, meaning the app isn’t connected to the signaling server. Am I missing something?
We have the whole thing running on AWS. We tried the setup with an external domain. However, LoadBlanacer did not accept the certificates. For testing we bought a domain directly via AWS. With this everything works.... Maybe this helps you.
We have the whole thing running on AWS. We tried the setup with an external domain. However, LoadBlanacer did not accept the certificates. For testing we bought a domain directly via AWS. With this everything works.... Maybe this helps you.
When you say that you bought a domain directly, does that mean that you are routing the traffic through that domain to the instance?
I am trying to get that working as well. There is a setting in the config.json file that is useHTTPS, which I set to true. I have also edited cirrus.js to reference our SSL certificate. The signaling server runs, but we don’t see: Streamer connected: ::1, meaning the app isn’t connected to the signaling server. Am I missing something?
Facing the same issue. Did you get a work around?
I am trying to get that working as well. There is a setting in the config.json file that is useHTTPS, which I set to true. I have also edited cirrus.js to reference our SSL certificate. The signaling server runs, but we don’t see: Streamer connected: ::1, meaning the app isn’t connected to the signaling server. Am I missing something?
Hi @amhep. I'm having the exact same problem. Where you able to solve it? Thanks!
Hi @kashman-amzn. Are you familiar with this issue? Maybe you can shed some light for us. Thanks!
Hi Everyone! Solved it using ngrok. Not sure if that's the best solution
That's great! Can you elaborate? The fact that the streamer can't connect is because the UE game is not connecting to the Signalling Server. How did you use ngrok to solve it?
Hey, well keep the standard settings of pixel streaming, in Ngrok set the forwarding https to the http link...
hey @arunvaswani1 Thanks for the help! It worked like a charm. Cheers!
hi, i resolve https with ngrok, but the site is stack on starting connection, ice candidate from one client (to other not) stack in starting connection, it is possibile i should using a external turn server solution ?
Hey I found the solution by my colleagues. I used Cloudfront in front of Web signaling server for http redirect to https. You need to set http only on Origin tab and redirect http to https on Behavior tab. And it worked well! And ALB in front of web signaling server works well too. However, if matchmaker is in front of web singaling server, I don't know workaround. If someone else know how to apply certificate in aws ec2, tell me please.
@NovySan I will try to explain it with what I remember: Let's say you have an ec2 machine which you can access with the address http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com/ You can create an iframe pointing to it to access the page if the hosting page is served as HTTP. In ec2, it's possible to create a https://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com load balancer to point to http://ec2-xxx-xxx-xxx-xxx.sa-east-1.compute.amazonaws.com, which can then can be served as https and used in an iframe in a https hosting page. (it ofc requires a few things like creating the aws certificate and other things, but it's pretty straightforward) I can go through my project to answer any question you have, but I suggest you to give it a try first because it will consume a bit of my time to get my credentials back.
Hi I tried to this few times but it never worked for me. I must have messed up load balancer/target group/certificate.. bla bla.. Anyway, a tutorial would be greately appreciated.
Many thanks in advance
It works well.