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
| # Use new Synology CLI tool -> `synopkgctl` | |
| #usage: synopkgctl <command> [...] | |
| #command: | |
| # enable <package> | |
| # disable <package> | |
| # setup <package> | |
| # start <package> | |
| # stop <package> | |
| # teardown <package> |
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
| public static class AlwaysOn | |
| { | |
| /// <summary> | |
| /// Prevent 404 on the application root URL. Azure Web Apps with Always On enabled invoke the root of the application every 5 minutes | |
| /// to keep your web app awake. If you run an API-only app you likely have nothing listening to /, which results in a 404 response | |
| /// that shows up in monitoring. This endpoint returns 200 with content Ok only for the always on check. | |
| /// </summary> | |
| /// <param name="builder">The application builder.</param> | |
| /// <returns>The application builder.</returns> | |
| public static IApplicationBuilder UseAlwaysOn(this IApplicationBuilder builder) |