mirror of
https://github.com/streamaserver/streama.git
synced 2026-04-25 18:45:59 +03:00
Page:
Nginx as a reverse proxy
Pages
Compiling the source code
Deploying SSL on Apache2 on Ubuntu (with letsEncrypt & Certbot)
Deploying SSL on Niginx on Debian or Ubuntu (with letsEncrypt & Certbot)
Email configuration
FAQs
Full streama setup on a clean Ubuntu18 with mysql, system.d & letsencrypt
Getting Started (Windows)
Getting started
Home
How to add your first Movie
How to report a bug
How to use Docker image
Installing as a service from Git on Ubuntu 16.04
Local Streama Setup
Managing h2 using dbconsole
Manually build Streama .war file
Nginx as a reverse proxy
Running Streama as a Linux service (with autostart) (Ubuntu 14 and below) using etc init.d
Running as a service (autostart) on Ubuntu 15 or higher
Set Up Streama for Development
Setup Streama on Centos 7
Setup Streama on Ubuntu 14.04
Streama regex Matcher for Batch File Adding
System Requirements
Translating the app
Tutorial for creating the SSL keystore file for a default Tomcat installation on Ubuntu using a free certificate from www.startssl.com
Upgrading Streama from a previous version
Video Codecs & Conversion
No results
10
Nginx as a reverse proxy
Luke Steward edited this page 2020-06-20 14:07:20 +01:00
This is out of date, please see https://docs.streama-project.com/
On the root of a (sub)domain
-
On the settings page, set the
Base URLthat 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 a subdirectory
-
On the settings page, set the
Base URLthat 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;
}
}