I'm trying to set up a raspberry pi as a jellyfin media server.
I'd like to access the device over the internet from a domain I own.
I've followed the jellyfin instructions for setting up an nginx conf file. The instructions indicated I should create a new file in /etc/nginx/conf.d/jellyfin.conf
. However, they don't indicate what I should do next. I assumed that nginx just sort of "knows" to look for custom conf files in its conf.d
directory, but if I do sudo service nginx start
, I'm not seeing the results I expect (a working reverse proxy). Then again, I'm also not really sure how to debug.
If I do sudo nginx -t
I get
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
So, I guess that means that my custom conf file isn't getting picked up? But, if I try to do
nginx -t /etc/nginx/conf.d/jellyfin.conf
I get an error:
nginx: [emerg] "server" directive is not allowed here in /etc/nginx/conf.d/jellyfin.conf:2
Anyway, that's not necessarily what I want to do: I want nginx running as a service, because I also don't know how to quit out of SSH without closing a program I've started from the given terminal.
How can I make the nginx service pick up my custom conf file?