I'm just starting to experiment with both minio and nginx proxied port applications and I think I might not know how one or the other or both are supposed to work.
I created the application with "Nginx Proxy Port" as the application type, and got 4581 as the assigned port. OK, I think that means my next step is to take my minio binary and figure out how to invoke it so that it's serving on 4185, which I believe is:
/minio server start --console-address ":4581"
But it doesn't want to start:
FATAL Unable to start the server: Specified port is already in use
> Please ensure no other program uses the same address/port
Hmm. That doesn't seem right. Or at least, I wouldn't think that 4581 wouldn't be bound yet by nginx -- it's supposed to listen on 80 and then proxy through to 4581 once minio starts, right?
I'm not exactly sure how to check ports, but netstat -ano | grep 4185
just yields a list of higher ports that start with 4185 like so:
tcp 0 0 127.0.0.1:45810 127.0.0.1:81 TIME_WAIT timewait (54.67/0/0)
tcp 0 0 127.0.0.1:45814 127.0.0.1:81 TIME_WAIT timewait (54.67/0/0)
OK, maybe I'll try something simpler, drop a <?php echo "hello world";
file in a directory and then do php -S localhost:4581
:
PHP 7.3.33 Development Server started at Sun Jul 21 03:47:15 2024
Listening on http://localhost:4581
Document root is /home/pathypathpath/bin/phpapp
Press Ctrl-C to quit.
[Sun Jul 21 03:51:53 2024] 127.0.0.1:49936 [200]: /
[Sun Jul 21 03:51:54 2024] 127.0.0.1:49960 [200]: /
[Sun Jul 21 03:51:54 2024] 127.0.0.1:49972 [200]: /server
[Sun Jul 21 03:51:54 2024] 127.0.0.1:49986 [404]: /.vscode/sftp.json - No such file or directory
...
Seems to have no trouble listening on the port. And those appear to be requests/responses (I'm a little unsettled that they aren't me and I'm not sure how anyone else knows knows this newly created domain serving this app exists, but it does appear to be working).
So maybe this means I do understand how Nginx Proxied Port apps work, but I don't understand how minio works? If so, any recommendations for filling that gap in understanding, or for other servers that can present an S3-like API for uploading files?
Thanks!