Skip to content

Commit

Permalink
Add nmc-remote-access.apps.ebrains.eu as an alternative URL
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Dec 19, 2024
1 parent ef604d2 commit 9f5abb4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions api/deployment/nginx-app-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ server {
return 301 https://nmpi-v3.hbpneuromorphic.eu$request_uri;
}

server {
listen 80;

server_name nmc-remote-access.apps.ebrains.eu
return 301 https://nmc-remote-access.apps.ebrains.eu$request_uri;
}

server {
listen 443 ssl;

Expand Down Expand Up @@ -41,6 +48,36 @@ server {

}

server {
listen 443 ssl;

ssl_certificate /etc/letsencrypt/live/nmc-remote-access.apps.ebrains.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/nmc-remote-access.apps.ebrains.eu/privkey.pem;

server_name nmc-remote-access.apps.ebrains.eu;
charset utf-8;
client_max_body_size 4G;

location / {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_buffering off;
proxy_pass http://uvicorn;
proxy_read_timeout 300s;
}

location /static {
alias /home/docker/site/static;
}

location /tmp_download {
alias /home/docker/site/tmp_download;
}

}

server {
listen 443 ssl;

Expand Down

0 comments on commit 9f5abb4

Please sign in to comment.