Merge pull request #182 from IXEguy/visibility_fix

Change Visability to Visibility
This commit is contained in:
Anthony Stirling 2023-05-17 16:43:31 +01:00 committed by GitHub
commit 7fda51a0c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -75,7 +75,7 @@ docker run -d \
-e APP_HOME_NAME="Stirling PDF" \ -e APP_HOME_NAME="Stirling PDF" \
-e APP_HOME_DESCRIPTION="Your locally hosted one-stop-shop for all your PDF needs." \ -e APP_HOME_DESCRIPTION="Your locally hosted one-stop-shop for all your PDF needs." \
-e APP_NAVBAR_NAME="Stirling PDF" \ -e APP_NAVBAR_NAME="Stirling PDF" \
-e ALLOW_GOOGLE_VISABILITY="true" \ -e ALLOW_GOOGLE_VISIBILITY="true" \
-e APP_ROOT_PATH="/" \ -e APP_ROOT_PATH="/" \
-e APP_LOCALE="en_GB" \ -e APP_LOCALE="en_GB" \
``` ```
@ -96,7 +96,7 @@ services:
# APP_HOME_DESCRIPTION: Your locally hosted one-stop-shop for all your PDF needs. # APP_HOME_DESCRIPTION: Your locally hosted one-stop-shop for all your PDF needs.
# APP_NAVBAR_NAME: Stirling PDF # APP_NAVBAR_NAME: Stirling PDF
# APP_ROOT_PATH: / # APP_ROOT_PATH: /
# ALLOW_GOOGLE_VISABILITY: true # ALLOW_GOOGLE_VISIBILITY: true
``` ```
@ -134,7 +134,7 @@ If running Java directly, you can also pass these as properties using -D argumen
Using the same method you can also change Using the same method you can also change
- The default language by providing APP_LOCALE with values like de-DE fr-FR or ar-AR to select your default language (Will always default to English on invalid locale) - The default language by providing APP_LOCALE with values like de-DE fr-FR or ar-AR to select your default language (Will always default to English on invalid locale)
- Enable/Disable search engine visablility with ALLOW_GOOGLE_VISABILITY with true / false values. Default disable visability. - Enable/Disable search engine visiblility with ALLOW_GOOGLE_VISIBILITY with true / false values. Default disable visibility.
- Change root URI for Stirling-PDF ie change server.com/ to server.com/pdf-app by running APP_ROOT_PATH as pdf-app - Change root URI for Stirling-PDF ie change server.com/ to server.com/pdf-app by running APP_ROOT_PATH as pdf-app
## API ## API

View file

@ -80,9 +80,9 @@ public class GeneralWebController {
@ResponseBody @ResponseBody
@Hidden @Hidden
public String getRobotsTxt() { public String getRobotsTxt() {
String allowGoogleVisibility = System.getProperty("ALLOW_GOOGLE_VISABILITY"); String allowGoogleVisibility = System.getProperty("ALLOW_GOOGLE_VISIBILITY");
if (allowGoogleVisibility == null) if (allowGoogleVisibility == null)
allowGoogleVisibility = System.getenv("ALLOW_GOOGLE_VISABILITY"); allowGoogleVisibility = System.getenv("ALLOW_GOOGLE_VISIBILITY");
if (allowGoogleVisibility == null) if (allowGoogleVisibility == null)
allowGoogleVisibility = "false"; allowGoogleVisibility = "false";
if (Boolean.parseBoolean(allowGoogleVisibility)) { if (Boolean.parseBoolean(allowGoogleVisibility)) {