Question: I am serving an app behind nginx proxy, and want to preserve phoenix live reload features. The issue is with:

```
<iframe src="/phoenix/live_reload/frame" style="display: none;"></iframe>

```

That is added to the main html. I need to change it to:

```
<iframe src="/new_url/phoenix/live_reload/frame" style="display: none;"></iframe>

```

I have checked endpoint, and tried to change like this:

```
if code_reloading? do
  socket "/new_url/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket
  plug Phoenix.LiveReloader
  plug Phoenix.CodeReloader
end

```

But it doesn't seem to change the iframe url. Then I found `livereloader.ex` in my deps, which I guess allows to set the url with config.

Can someone show how should I set the url for it? Thanks in advance.

Updated the `config/dev.exs`, yet doesn't seem to work.As pointed out by @PatNowak,the url seems to set host and port, but not the url.

Last: 
I believe that setting url, as suggested below, changes the socket url, but not actually the `iframe src`. I'll remove proxy for now to keep the live reload.

Answer: 
The version 2.0.0.M6 isn't located in the repo <http://repo.maven.apache.org/maven2>. If you wan't to use this version you have to use the maven repo <http://repo.spring.io/milestone>. So add it to your POM file:

```xml
<repositories>
    <repository>
        <id>spring-milestone-repo</id>
        <url>http://repo.spring.io/milestone/</url>
    </repository>
</repositories>

```

I would recommend you to use the latest release version of spring-boot (1.5.8.RELEASE), not a milestone version. I don't know how your POM looks like, but you can define spring boot in your POM in different ways:

1. Using the Spring Boot parent POM
===================================

```
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.8.RELEASE</version>
</parent>

```

Then you can add the dependencies you wish to use e.g.:

```
<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
</dependencies>

```

See: <https://spring.io/guides/gs/spring-boot/>

2. Declare Spring-Boot in Dependency-Management
===============================================

If you already using an own parent POM, you could also import the spring boot dependency management in your POM:

```
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-dependencies</artifactId>
            <version>1.5.8.RELEASE</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

```

Same as in variant #1 you can declare afterwards the dependencies of spring boot you wish to use.
Check if you didn't add spring boot dependency having already spring-boot as parent. That was my case.