Skip to content

Instantly share code, notes, and snippets.

@coreequip
Last active November 21, 2025 09:52
Show Gist options
  • Select an option

  • Save coreequip/f39cdbd13bfb10c1b18511303807a953 to your computer and use it in GitHub Desktop.

Select an option

Save coreequip/f39cdbd13bfb10c1b18511303807a953 to your computer and use it in GitHub Desktop.
Frees ports 80 and 443 of your DiskStation and restarts nginx. Run with `sudo`.
#!/bin/bash
sed -i -e 's/80/81/' -e 's/443/444/' /usr/syno/share/nginx/server.mustache /usr/syno/share/nginx/DSM.mustache /usr/syno/share/nginx/WWWService.mustache
synosystemctl restart nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment