Application.yml


Some settings need to be configured in the application.yml. This is placed next to the streama.war file and will be automatically loaded.

Sample application.yml:

environments:
    production:
        dataSource:
            #Default embedded database
            driverClassName:  'org.h2.Driver'
            url: jdbc:h2:./streama;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
            username: root
            password:
            
            #For mysql database
            #driverClassName:  'com.mysql.jdbc.Driver'
            #url: jdbc:mysql://localhost/streama
            #username: root
            #password:
        server:
            port: 8080

streama:
  regex:
    movies: ^(?<Name>.*)[._ ]\(\d{4}\).*
    shows:
      - ^(?<Name>.+)[._ ]S(?<Season>\d{2})E(?<Episode>\d{2,3}).*
      - ^(?<Name>.+)[._ ](?<Season>\d{1,2})x(?<Episode>\d{2,3}).*

How to use this page

In the below list of settings settings are listed like setting0.setting1.setting2: value in the application.yml this would be formatted as:

setting0:
    setting1:
        setting2: value

If there are multiple ones they can be merged, for example the flowing setting and the one above would be: setting0.setting1.othersetting: value

setting0:
    setting1:
        setting2: value
        othersetting: value

Application.yml options:

This is not an exhaustive list, options from grails / springboot can be used.

environments.production.dataSource

See databases on how to configure data sources.

server.port

The port to run the server on. You cannot use values below 1024 unless you are root and it is not recommended to run Streama as root. If you want to run on port 80 or with HTTPS see Reverse proxies

streama.regex.movies

The regular expression to use for matching movies when bulk-adding. Can also be a list of multiple RegExs.

streama.regex.shows

The regular expression to use for matching TV shows when bulk-adding. Can also be a list of multiple RegExs.

grails.controllers.upload.maxFileSize

The max file size that can be uploaded. Default to 10TB.

grails.controllers.upload.maxRequestSize

The max file size that can be requested. Default to 10TB.

This page was last updated: October 6, 2018:
Improve this page