~mediagoblin/mediagoblin#57: 
data_basedir in mediagoblin.ini is not updating defaults in config_spec.ini

I am currently packaging mediagoblin for NixOS and supplied the mediagoblin.ini config file via the MEDIAGOBLIN_CONFIG env and changed DEFAULT.data_basedir to /var/lib/mediagoblin/user_dev. This was not propagated properly into all the settings with default in config_spec.ini and some paths like crypto_path still used the value from here instead of my configured one.

Status
RESOLVED CLOSED
Submitter
~sandro
Assigned to
No-one
Submitted
5 months ago
Updated
4 months ago
Labels
No labels applied.

~sturm 5 months ago

Thanks for your packaging efforts!

MEDIAGOBLIN_CONFIG is only used by the Celery task queuing process, not by the MediaGoblin web application. Your options here are:

a. Specify your config file in paste.ini and run the web application with paster serve paste.ini as per our traditional deployment approach (see https://docs.mediagoblin.org/en/master/siteadmin/deploying.html#run-mediagoblin-as-a-system-service). You'll still need MEDIAGOBLIN_CONFIG for running celery worker. Sorry for the inconsistency here.

b. Use the new gmg -cf CONF_FILE serve and gmg -cf CONF_FILE celery commands. These should be good to go, but we haven't switched our documentation over to use them yet, so haven't been as thoroughly tested.

For what it's worth, it may be useful to check out my work-in-progress Guix package. The inputs section may be relevant to your work. I'm not using the project's make, but rather installing as a Python package: https://git.sr.ht/~mediagoblin/mediagoblin/tree/master/item/.guix/modules/mediagoblin-package.scm

~sturm REPORTED CLOSED 4 months ago

Hi ~sandro, did I address your needs here regarding packaging MediaGoblin for NixOS? I'll mark this as resolved for now, but I'd love to hear if that worked for you.

~sandro 4 months ago

I just ended up copying the config file to /var/lib/mediagoblin on each systemd service start. You can follow the packaging progress at https://github.com/NixOS/nixpkgs/pull/350578

On Mon, 28 Oct 2024 at 00:26, ~sturm outgoing@sr.ht wrote:

Ticket resolved: CLOSED

Hi ~sandro, did I address your needs here regarding packaging MediaGoblin for NixOS? I'll mark this as resolved for now, but I'd love to hear if that worked for you.

-- View on the web: https://todo.sr.ht/~mediagoblin/mediagoblin/57#event-392615

~sandro referenced this from #57 4 months ago

Register here or Log in to comment, or comment via email.