-
Couldn't load subscription status.
- Fork 2
Update .service, use upstream config, fix HOME. #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| diff -ura package.orig/config.example.yml package.new/config.example.yml | ||
| --- package.orig/config.example.yml 2020-03-08 14:59:02.828681120 +0100 | ||
| +++ package.new/config.example.yml 2020-03-12 02:30:06.273495477 +0100 | ||
| @@ -3,7 +3,7 @@ | ||
|
|
||
| server: | ||
| listenaddr: "" # the address to bind on, leave empty to bind on all addresses | ||
| - port: 80 # the port the HTTP server will listen on | ||
| + port: 9071 # the port the HTTP server will listen on | ||
|
|
||
| ssl: | ||
| enabled: false # if https should be enabled | ||
| @@ -15,7 +15,7 @@ | ||
| letsencrypt: | ||
| enabled: false # if the certificate should be requested from letsencrypt | ||
| accepttos: false # if you accept the tos from letsencrypt | ||
| - cache: data/certs # the directory of the cache from letsencrypt | ||
| + cache: /var/lib/gotify/certs # the directory of the cache from letsencrypt | ||
| hosts: # the hosts for which letsencrypt should request certificates | ||
| # - mydomain.tld | ||
| # - myotherdomain.tld | ||
| @@ -31,11 +31,11 @@ | ||
|
|
||
| database: # for database see (configure database section) | ||
| dialect: sqlite3 | ||
| - connection: data/gotify.db | ||
| + connection: /var/lib/gotify/gotify.db | ||
|
|
||
| defaultuser: # on database creation, gotify creates an admin user | ||
| name: admin # the username of the default user | ||
| pass: admin # the password of the default user | ||
| passstrength: 10 # the bcrypt password strength (higher = better but also slower) | ||
| -uploadedimagesdir: data/images # the directory for storing uploaded images | ||
| -pluginsdir: data/plugins # the directory where plugin resides | ||
| +uploadedimagesdir: /var/lib/gotify/images # the directory for storing uploaded images | ||
| +pluginsdir: /var/lib/gotify/plugins # the directory where plugin resides |
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| post_install() { | ||
| echo 'Default login is admin:admin' | ||
| echo 'Change it in /etc/gotify/config.yml or the web ui before exposing the service!' | ||
| } | ||
|
|
||
| post_upgrade() { | ||
| if [[ $(vercmp '2.0.14-4' "$2") -eq 1 ]]; then | ||
| echo 'Default port for gotify-server has changed with version "2.0.14-4"' | ||
| echo 'old port: 8080' | ||
| echo 'new port: 9071' | ||
| fi | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,46 @@ | ||
| [Unit] | ||
| Description=Gotify Server | ||
| After=network.target | ||
| ConditionPathIsDirectory=%L/gotify | ||
|
|
||
| [Service] | ||
| Type=simple | ||
| User=gotify | ||
| Group=gotify | ||
| ExecStart=/usr/bin/gotify-server | ||
|
|
||
| ConfigurationDirectory=gotify | ||
| LogsDirectory=gotify | ||
| StateDirectory=gotify | ||
| StateDirectoryMode=0700 | ||
| StandardOutput=append:%L/gotify/server.log | ||
|
|
||
| UMask=0027 | ||
| CapabilityBoundingSet= | ||
| AmbientCapabilities= | ||
| LockPersonality=true | ||
| MemoryDenyWriteExecute=true | ||
| NoNewPrivileges=true | ||
| PrivateDevices=true | ||
| PrivateTmp=true | ||
| PrivateUsers=true | ||
| ProtectClock=true | ||
| ProtectControlGroups=true | ||
| ProtectHome=true | ||
| ProtectHostname=true | ||
| ProtectKernelLogs=true | ||
| ProtectKernelModules=true | ||
| ProtectKernelTunables=true | ||
| ProtectSystem=strict | ||
| RemoveIPC=true | ||
| RestrictAddressFamilies=AF_INET AF_INET6 | ||
| RestrictNamespaces=true | ||
| RestrictRealtime=true | ||
| RestrictSUIDSGID=true | ||
| SystemCallArchitectures=native | ||
| SystemCallErrorNumber=EPERM | ||
| SystemCallFilter=@system-service | ||
| SystemCallFilter=~@privileged @resources | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| u gotify - - /var/lib/gotify | ||
| u gotify - - | ||
| g gotify - - |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.