Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
piops-roles
ansible-role-hedgedocs
Commits
44a4c609
Commit
44a4c609
authored
Nov 19, 2021
by
nono
💻
Browse files
Update service & port used
parent
ee5ec8c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
files/config.json.j2
View file @
44a4c609
...
...
@@ -20,7 +20,7 @@
"production": {
"domain" : "{{ service_hedgedocs_domain }}",
"host" : "localhost",
"port" : 300
0
,
"port" : 300
3
,
"protocolUseSSL" : true,
"useSSL" : false,
"urlAddPort" : false,
...
...
files/etc/nginx/hedgedocs-nginx.conf.j2
View file @
44a4c609
...
...
@@ -9,7 +9,7 @@ server {
server_name {{ service_hedgedocs_domain }};
location / {
proxy_pass http://127.0.0.1:300
0
;
proxy_pass http://127.0.0.1:300
3
;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
...
...
@@ -17,7 +17,7 @@ server {
}
location /socket.io/ {
proxy_pass http://127.0.0.1:300
0
;
proxy_pass http://127.0.0.1:300
3
;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
...
...
files/hedgedocs.service
View file @
44a4c609
# {{ ansible_managed }}
[Unit]
Description
=
HedgeDoc
s collaborativ
e markdown
notes
Documentation
=
https://
github.com/hedge
doc
/
hedgedoc/
Description
=
HedgeDoc
- The best platform to write and shar
e markdown
.
Documentation
=
https://doc
s.
hedgedoc
.org
/
After
=
network.target
# Uncomment if you use MariaDB/MySQL
# After=mysql.service
# Uncomment if you use PostgreSQL
After
=
postgresql.service
[Service]
Type
=
exec
RestartSec
=
2s
User
=
hedgedocs
Group
=
www-data
# the location you cloned CodiMD to.
# This is relative to the home of the hedgedocs user : https://www.freedesktop.org/software/systemd/man/systemd.exec.html
WorkingDirectory
=
/home/hedgedocs/hedgedoc/
ExecStart
=
npm start --production
Environment
=
NODE_ENV=production
Restart
=
always
PrivateTmp
=
true
RestartSec
=
2s
ExecStart
=
/usr/bin/yarn start --production
CapabilityBoundingSet
=
NoNewPrivileges
=
true
PrivateDevices
=
true
RemoveIPC
=
true
LockPersonality
=
true
ProtectControlGroups
=
true
ProtectKernelTunables
=
true
ProtectKernelModules
=
true
ProtectKernelLogs
=
true
ProtectClock
=
true
ProtectHostname
=
true
ProtectProc
=
noaccess
RestrictRealtime
=
true
RestrictSUIDSGID
=
true
RestrictNamespaces
=
true
RestrictAddressFamilies
=
AF_UNIX AF_INET AF_INET6
ProtectSystem
=
strict
ProtectHome
=
true
PrivateTmp
=
true
SystemCallArchitectures
=
native
SystemCallFilter
=
@system-service
# You may have to adjust these settings
User
=
hedgedocs
Group
=
hedgedocs
WorkingDirectory
=
/home/hedgedocs/hedgedoc
# Example: local storage for uploads and SQLite
# ReadWritePaths=/home/hedgedocs/hedgedoc/public/uploads /home/hedgedocs/hedgedoc/db
[Install]
WantedBy
=
multi-user.target
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment