-
Notifications
You must be signed in to change notification settings - Fork 987
Nginx as a reverse proxy
Luke Steward edited this page Jun 20, 2020
·
10 revisions
This is out of date, please see https://docs.streama-project.com/
-
On the settings page, set the
Base URL
that you will use after configuring nginx. EG:http://example.com
-
Configure nginx:
server {
listen 80;
listen [::]:80;
server_name example.com;
client_max_body_size 128g; # allows larger files (like videos) to be uploaded.
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8080;
}
}
-
On the settings page, set the
Base URL
that you will use after configuring nginx. EG:http://example.com/streama
-
Set
application.yml
In the application.yml
set:
environments:
production:
grails:
assets:
url: http://example.com/streama/assets/
- Configure nginx:
server {
listen 80;
listen [::]:80;
server_name example.com;
client_max_body_size 128g; # allows larger files (like videos) to be uploaded.
location /streama/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
rewrite ^/streama/(.*)$ /$1 break;
proxy_pass http://localhost:8080;
}
}