# Wowza WebRTC with  Reverse proxy

**URL:** https://community.wowza.com/t/wowza-webrtc-with-reverse-proxy/52717
**Category:** Wowza Streaming Engine
**Created:** [January 23, 2019, 5:49pm UTC](https://community.wowza.com/t/wowza-webrtc-with-reverse-proxy/52717 "2019-01-23T17:49:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_Georgoulis](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Chris\_Georgoulis](https://community.wowza.com/u/Chris_Georgoulis)
#### Post date: [January 23, 2019, 5:49pm UTC](https://community.wowza.com/t/wowza-webrtc-with-reverse-proxy/52717/1 "2019-01-23T17:49:30Z")

</div>

Hello, my platform details are the following: - OS: CentOS 5.5 - Java: 1.8 - Wowza Streaming Engine 4.7.7

I’m a complete beginner with wowza so I am initially trying to use the ready WebRTC examples. Initially, I created a streamlock certificate/domain, and can publish/play with other nodes in my network. However, these are all internal network IP’s.

What I want to achieve is expose this to the internet. So I have setup a Reverse proxy with the domain: [mydomain.mycompany.com](http://mydomain.mycompany.com) with CA certified SSL certificate. Therefore, according to what I have read it is not necessary to use streamlock.

What I basically want to achieve is to use the URL wss://mydomain.mycompany.com/myapp/webrtc-session.json when publishing/subscribing to a WebRTC stream. Could you help me out in how to do this? Do I need to obtain the certificate that I have for the my domain and also include it in VHost.xml, or is that not necessary? Do you maybe have an example on how I could set this up? R

---

<div class="post-metadata">

### Author: ![Emre\_Karatasoglu\_Adv](https://avatars.discourse-cdn.com/v4/letter/e/0ea827/32.png) [@Emre\_Karatasoglu\_Adv](https://community.wowza.com/u/Emre_Karatasoglu_Adv)
#### Post date: [January 25, 2019, 1:27pm UTC](https://community.wowza.com/t/wowza-webrtc-with-reverse-proxy/52717/2 "2019-01-25T13:27:04Z")

</div>

Hi, for proxy passing, I suggest you nginx , do not change anything on your wowza configuration. Set nginx up and define a location

```auto
location /webrtc-session.json {
		    proxy_pass http://wowza_webrtc_nodes/webrtc-session.json;
			proxy_http_version 1.1;
			proxy_set_header Upgrade $http_upgrade;
			proxy_set_header Connection "upgrade";
			proxy_redirect off;
			
			proxy_set_header Host $host;
			proxy_set_header X-Real-IP $remote_addr;
			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		}

```

where wowza\_webrtc\_nodes is

```auto
upstream wowza_webrtc_nodes {
		server localhost:8086;
	}

```

---

<div class="post-metadata">

### Author: ![52168f9b420a98e08c06](https://avatars.discourse-cdn.com/v4/letter/5/f08c70/32.png) [@52168f9b420a98e08c06](https://community.wowza.com/u/52168f9b420a98e08c06)
#### Post date: [February 13, 2023, 10:30am UTC](https://community.wowza.com/t/wowza-webrtc-with-reverse-proxy/52717/3 "2023-02-13T10:30:20Z")

</div>

I am a complete beginner with wowza.  
I tried this proxy in my nginx but it doesn’t work.  
The connection toward port 8086/tcp is no problem.Is it necessary to set something in wowza side?  
curl command returned 404 with this address.  
http://wowza\_webrtc\_nodes/webrtc-session.json;  
Should I change Host Ports settings?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/2/23b336acb993426e3188d2e500a19323a5b4ff92.png)

---

<div class="post-metadata">

### Author: ![Jason\_Tuchler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_tuchler/32/462_2.png) [@Jason\_Tuchler](https://community.wowza.com/u/Jason_Tuchler)
#### Post date: [February 28, 2023, 6:04pm UTC](https://community.wowza.com/t/wowza-webrtc-with-reverse-proxy/52717/4 "2023-02-28T18:04:48Z")

</div>

@52168f9b420a98e08c06 At this time we do not have reverse proxies for WebRTC to know what needs to be opened up or if the workflow can work.

If you would like to discuss your workflow needs further, I suggest reaching out to our Sales Team at:  
[sales@wowza.com](mailto:sales@wowza.com)
