Skip to content

Commit 9f5abb4

Browse files
committed
Add nmc-remote-access.apps.ebrains.eu as an alternative URL
1 parent ef604d2 commit 9f5abb4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

api/deployment/nginx-app-prod.conf

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ server {
1111
return 301 https://nmpi-v3.hbpneuromorphic.eu$request_uri;
1212
}
1313

14+
server {
15+
listen 80;
16+
17+
server_name nmc-remote-access.apps.ebrains.eu
18+
return 301 https://nmc-remote-access.apps.ebrains.eu$request_uri;
19+
}
20+
1421
server {
1522
listen 443 ssl;
1623

@@ -41,6 +48,36 @@ server {
4148

4249
}
4350

51+
server {
52+
listen 443 ssl;
53+
54+
ssl_certificate /etc/letsencrypt/live/nmc-remote-access.apps.ebrains.eu/fullchain.pem;
55+
ssl_certificate_key /etc/letsencrypt/live/nmc-remote-access.apps.ebrains.eu/privkey.pem;
56+
57+
server_name nmc-remote-access.apps.ebrains.eu;
58+
charset utf-8;
59+
client_max_body_size 4G;
60+
61+
location / {
62+
proxy_set_header Host $http_host;
63+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
64+
proxy_set_header X-Forwarded-Proto $scheme;
65+
proxy_redirect off;
66+
proxy_buffering off;
67+
proxy_pass http://uvicorn;
68+
proxy_read_timeout 300s;
69+
}
70+
71+
location /static {
72+
alias /home/docker/site/static;
73+
}
74+
75+
location /tmp_download {
76+
alias /home/docker/site/tmp_download;
77+
}
78+
79+
}
80+
4481
server {
4582
listen 443 ssl;
4683

0 commit comments

Comments
 (0)