# Site goes down at the same time every day in memory-constrained environment

**URL:** <https://meta.discourse.org/t/site-goes-down-at-the-same-time-every-day-in-memory-constrained-environment/76358>\
**Category:** Support\
**Created:** [2017年十二月18日 22:57 UTC](https://meta.discourse.org/t/site-goes-down-at-the-same-time-every-day-in-memory-constrained-environment/76358 "2017-12-18T22:57:22Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![axfelix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/axfelix/32/65166_2.png) [@axfelix](https://meta.discourse.org/u/axfelix)\
**Post date:** [2017年十二月18日 23:49 UTC](https://meta.discourse.org/t/site-goes-down-at-the-same-time-every-day-in-memory-constrained-environment/76358/10 "2017-12-18T23:49:25Z")

</div>

I don’t think the nginx _inside_ the container has diverged from stock at all, I use the provided launcher script for all the docker stuff.

This is what the host nginx config for the site looks like if you’re curious, but I don’t think this is the problem:

root@selectbutton:/etc/nginx/sites-enabled# cat discourse

```
server {

listen 443 ssl;
server_name selectbutton.net;
ssl_certificate /etc/letsencrypt/live/selectbutton.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/selectbutton.net/privkey.pem;

location /basic_status {
    stub_status on;
    access_log off;
    allow 127.0.0.1;
    allow 172.31.20.111;
    allow 52.35.138.13;
    deny all;
}

location / {
    root /var/www/discourse-root;
    try_files $uri @discourse;
}

location @discourse {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass https://localhost:4443;
}
}

server {
listen 80;
server_name selectbutton.net;
return 301 https://$host$request_uri;
}

```

---

_[View the full topic](https://meta.discourse.org/t/site-goes-down-at-the-same-time-every-day-in-memory-constrained-environment/76358)._
