Last active
November 21, 2025 09:52
-
-
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`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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