Hello everyone, trying here to install Libretime on a fresh machine. The script finished with no errors, i ran the database migrate and can see the site on por 8080 as requested with the install command:
Thanks for your answer, i’ve reinstalled and moved a bit fwd but still same error on the web page, but on the backend i get quite positve output:
All services active and running
sudo systemctl --all --plain | egrep 'libretime|nginx|php.*-fpm'
libretime-analyzer.service loaded active running LibreTime Media Analyzer Service
libretime-api.service loaded active running LibreTime API Service
libretime-liquidsoap.service loaded active running LibreTime Liquidsoap Service
libretime-playout.service loaded active running LibreTime Playout Service
libretime-worker.service loaded active running LibreTime Worker Service
nginx.service loaded active running A high performance web server and a reverse proxy server
php7.4-fpm.service loaded active running The PHP 7.4 FastCGI Process Manager
libretime-api.socket loaded active running LibreTime API Socket
libretime.target loaded active active LibreTime Services
If the above error is related to the config file, i have this there:
# List of origins allowed to access resources on the server,
# the [general.public_url] origin is automatically included.
# > default is []
allowed_cors_origins: []
[CORSHelper.php:13 - enableCrossOriginRequests()] - request origin 'http://135.181.216.23:8080' is not in allowed 'http://135.181.216.23, '!
It says your origin (the url in your browser: http://135.181.216.23:8080) is not allowed. The list of allowed origins is currently ['http://135.181.216.23'] which is probably containing the general.public_url you configured (as described by the comment for the allowed_cors_origins setting).
You probably have to change your public url and including the port number http://135.181.216.23:8080 .
In addition, I now see your install command, and you missed the port in public_url arguments:
# From
sudo ./install --listen-port 8080 http://xxx.xxx.xx.xx
# To
sudo ./install --listen-port 8080 http://xxx.xxx.xx.xx:8080
Oh, so my mistake was to assume that by adding the --listen-port 8080 flag there was no need to be redundant on repeating the port :8080 portion to the URL.
Can I simply re-run the installer with the proper line?