Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to gracefully restart nginx after SSL certificate update

Featured Replies

I know this has been asked before but I'm finding the previous / older provided solutions are causing instability.  Let me explain.

I'm using a wildcard cert from LetsEncrypt.  As you probably know, letsencrypt certs have a fairly short expire time.  I'm using SWAG to grab the certs and a custom script to check for new certs from SWAG and copy them to the various places they need to go, including `/boot/config/ssl/certs`  
The problem is that either NGINX or PHP doesn't pick up the new certs until they are restarted.  
Here's what I was running:
 

    # Restart Unraid WebGUI
    echo "Reloading Unraid NGINX for the WebUI"
    # Below command might have been casuing issues with the server, processes kept getting killed and restarted.
    /etc/rc.d/rc.nginx reload
    # Commented out for now, broke on unraid upgrade, research later
    /etc/rc.d/rc.nginx restart
    /etc/rc.d/rc.php-fpm restart

 

I've uncommented the three commands above, but in my script they are currently commented out.

 

So I'm asking if someone working on the Unraid project has the official way we should be doing this so I don't feel like I'm doing something that could break my NAS.

 

If we can get an official answer, maybe adding it to the below would be good.
https://wiki.unraid.net/Manual/Security#Securing_webGui_connections_.28SSL.29

  • 3 months later...

Bit of a necropost but I have a similar setup and would like to see the best practice method for restarting the webgui for cert updates as well.

  • 1 month later...
  • Author

After a bunch of research and testing I've found this works best on 6.11.5
 

nginx -s reload

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.