# My discourse forum github login broken by setting ENV proxy in app.yml

**URL:** https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508
**Category:** Self-hosting
**Tags:** hosting
**Created:** [December 18, 2021, 4:51am UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508 "2021-12-18T04:51:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![zilongshanren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zilongshanren/32/244026_2.png) [@zilongshanren](https://meta.discourse.org/u/zilongshanren)
#### Post date: [December 18, 2021, 4:51am UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508/1 "2021-12-18T04:51:36Z")

</div>

Hi, everyone

In order to run `./launcher rebuild app`, I use a proxy to help me pull code from Github smoothly.

```plaintext
env:
  LANG: en_US.UTF-8
  DISCOURSE_DEFAULT_LOCALE: zh_CN
  HTTP_PROXY: http://10.27.xxx.xxx:7890
  HTTPS_PROXY: http://10.27.xxx..xx:7890

```

But when I run my site, the Github login function is failed. I have to start my local proxy to fix it.

How can I remove the http\_proxy and https\_proxy of my running site.

Are there any commands as below I can follow to fix the problem?

```plaintext
./launcher enter app
//remove env
./launcher start app

```

Any helps would be appreciated.

Thanks.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 18, 2021, 9:52am UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508/2 "2021-12-18T09:52:26Z")

</div>

Maybe if you `bootstrap`, then edit the `app.yml`, then `start`.

Also there is a command line option `--docker-args`. There might be a way to pass something there when you bootstrap.

---

<div class="post-metadata">

### Author: ![zilongshanren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zilongshanren/32/244026_2.png) [@zilongshanren](https://meta.discourse.org/u/zilongshanren)
#### Post date: [December 18, 2021, 10:26am UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508/3 "2021-12-18T10:26:24Z")

</div>

Can I run `./launcher start app --docker-args` ?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 18, 2021, 11:51am UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508/4 "2021-12-18T11:51:54Z")

</div>

Yes. You can. It’s a shell script and you can look at it. There is some documentation at the top of the file. But I pass docker args to launcher start to add stuff to get it to work with traefik.

---

<div class="post-metadata">

### Author: ![zilongshanren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zilongshanren/32/244026_2.png) [@zilongshanren](https://meta.discourse.org/u/zilongshanren)
#### Post date: [December 19, 2021, 2:29am UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508/5 "2021-12-19T02:29:52Z")

</div>

thanks, Jay, But I still can’t get rid of the effect caused by

```plaintext
./launcher rebuild app --docker-args="--net=host --env https_proxy=http://127.0.0.1:7890"

```

I need something to remove the proxy settings when I restart my app like this:

```plaintext
./launcher start app --docker-args="--net=host --removeEnv" //removeEnv is not a valid command, I only use this for illustration purpose

```

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 19, 2021, 9:05am UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508/6 "2021-12-19T09:05:53Z")

</div>

Have your tried changing the env settings in the yml file begotten /between the bootstrap and start?

---

<div class="post-metadata">

### Author: ![zilongshanren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zilongshanren/32/244026_2.png) [@zilongshanren](https://meta.discourse.org/u/zilongshanren)
#### Post date: [December 19, 2021, 3:13pm UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508/7 "2021-12-19T15:13:05Z")

</div>

Yes, but it doesn’t work, so I tried not to mess with the app.yml and use --docker-args to pass the GFW.

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/b/5b5e9ef2d55abee1b7ec27feaaea6b67c8dfc252.png)

When I try to login with Github auth, it turns out that the request pass through the proxy address which is not what I expected.

BTW: my site is [emacs-china.org](http://emacs-china.org), you can reproduce the issue with Github auth.

Thanks.

---

<div class="post-metadata">

### Author: ![zilongshanren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zilongshanren/32/244026_2.png) [@zilongshanren](https://meta.discourse.org/u/zilongshanren)
#### Post date: [December 25, 2021, 1:56am UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508/8 "2021-12-25T01:56:36Z")

</div>

Finally, I got it working.

1. edit container/app.yml, remove http\_proxy
2. ./launcher destroy app
3. ./launcher start app

./launcher destroy app could remove the docker env settings in most situation.

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [December 26, 2021, 6:31am UTC](https://meta.discourse.org/t/my-discourse-forum-github-login-broken-by-setting-env-proxy-in-app-yml/212508/9 "2021-12-26T06:31:25Z")

</div>

> [@zilongshanren](#):
>
> it turns out that the request pass through the proxy address which is not what I expected.

Out of curiosity: What _were_ you expecting? Isn’t that what `HTTP_PROXY` is _supposed_ to do?
