Guest User

Untitled

a guest
May 1st, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.99 KB | None | 0 0
  1. direct.frederikcreemers.be, www.frederikcreemers.be {
  2. root frederikcreemers.be/public
  3. log
  4. errors
  5.  
  6. git {
  7. repo https://gitlab.com/frederikcreemers/frederikcreemers.be.git
  8. path frederikcreemers.be
  9. hook /pushed none
  10. then caddy
  11. interval 3000
  12. }
  13.  
  14. hugo frederikcreemers.be
  15. }
  16.  
  17. media.frederikcreemers.be, localhost:8080 {
  18.  
  19. log
  20. errors
  21. filemanager /manage {
  22. no_auth
  23. commands "git wget"
  24. }
  25.  
  26. root public
  27. browse
  28.  
  29. jwt {
  30. path /private
  31. redirect /login?next={path}
  32. allow sub frederikcreemers@gmail.com
  33. allow sub hildepeeters@gmail.com
  34. allow sub hilde.peeters@gmail.com
  35. allow sub elisabeth.creemers@gmail.com
  36. allow sub elisabethcreemers@gmail.com
  37. allow sub guidocreemers@gmail.com
  38. }
  39.  
  40. jwt {
  41. path /manage
  42. redirect /private
  43. allow sub frederikcreemers@gmail.com
  44. }
  45.  
  46. login {
  47. success_url /
  48. logout_url /
  49. google "client_id=foo,client_secret=bar,scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/plus.me"
  50. cookie_expiry 168h
  51. jwt_expiry 168h
  52. }
  53. }
  54.  
  55. creetris.frederikcreemers.be {
  56. root creetris
  57. errors {
  58. 404 index.html
  59. }
  60. }
  61.  
  62. netstat -tulpn
  63.  
  64. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  65. tcp6 0 0 :::2015 :::* LISTEN 25632/caddy
  66.  
  67. [Unit]
  68. Description=Caddy HTTP/2 web server
  69. Documentation=https://caddyserver.com/docs
  70. After=network-online.target
  71. Wants=network-online.target systemd-networkd-wait-online.service
  72.  
  73. [Service]
  74. WorkingDirectory=/home/media
  75. Restart=on-abnormal
  76. Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
  77.  
  78. ; User and group the process will run as.
  79.  
  80. ; Always set "-root" to something safe in case it gets forgotten in the Caddyfile.
  81. ExecStart=/usr/local/bin/caddy -log stdout -agree=true
  82. ExecReload=/bin/kill -USR1 $MAINPID
  83.  
  84. ; Use graceful shutdown with a reasonable timeout
  85. KillMode=mixed
  86. KillSignal=SIGQUIT
  87. TimeoutStopSec=5s
  88.  
  89. ; Limit the number of file descriptors; see `man systemd.exec` for more limit settings.
  90. LimitNOFILE=1048576
  91. ; Unmodified caddy is not expected to use more than that.
  92. LimitNPROC=512
  93.  
  94. ; Use private /tmp and /var/tmp, which are discarded after caddy stops.
  95. ;PrivateTmp=true
  96. ; Use a minimal /dev
  97. ;PrivateDevices=true
  98. ; Make /usr, /boot, /etc and possibly some more folders read-only.
  99. ;ProtectSystem=full
  100. ; … except /etc/ssl/caddy, because we want Letsencrypt-certificates there.
  101. ; This merely retains r/w access rights, it does not add any new. Must still be writable on the host!
  102. ;ReadWriteDirectories=/root/.caddy;/home/media
  103.  
  104. ; The following additional security directives only work with systemd v229 or later.
  105. ; They further retrict privileges that can be gained by caddy. Uncomment if you like.
  106. ; Note that you may have to add capabilities required by any plugins in use.
  107. CapabilityBoundingSet=CAP_NET_BIND_SERVICE
  108. AmbientCapabilities=CAP_NET_BIND_SERVICE
  109. NoNewPrivileges=true
  110.  
  111. [Install]
  112. WantedBy=multi-user.target
  113.  
  114. May 01 19:20:21 ubuntu-512mb-fra1-01 systemd[1]: Started Caddy HTTP/2 web server.
  115. May 01 19:20:21 ubuntu-512mb-fra1-01 caddy[25687]: Activating privacy features... done.
  116. May 01 19:20:21 ubuntu-512mb-fra1-01 caddy[25687]: [WARNING] A database is going to be created for your File Manager instance at .caddy/filemanager/8f8ebb77287b3283b2cd93b625547577.db. It is highly recommended that you set th
  117. May 01 19:20:21 ubuntu-512mb-fra1-01 caddy[25687]: [WARNING] A database is going to be created for your File Manager instance at .caddy/filemanager/96706b75e763a6accd04c4736aafe59c.db. It is highly recommended that you set th
  118. May 01 19:20:21 ubuntu-512mb-fra1-01 caddy[25687]: [WARNING] A database is going to be created for your File Manager instance at .caddy/filemanager/a9edda69bab5269b7076ad6739f97621.db. It is highly recommended that you set th
  119. May 01 19:20:21 ubuntu-512mb-fra1-01 caddy[25687]: [WARNING] A database is going to be created for your File Manager instance at .caddy/filemanager/ed3c77e098a98c5598578c43590134dd.db. It is highly recommended that you set th
  120. May 01 19:20:21 ubuntu-512mb-fra1-01 caddy[25687]: [WARNING] A database is going to be created for your File Manager instance at .caddy/filemanager/d225eaa3d82bb1989154334fa90a61f0.db. It is highly recommended that you set th
  121. May 01 19:20:22 ubuntu-512mb-fra1-01 caddy[25687]: From https://gitlab.com/frederikcreemers/frederikcreemers.be
  122. May 01 19:20:22 ubuntu-512mb-fra1-01 caddy[25687]: * branch master -> FETCH_HEAD
  123. May 01 19:20:23 ubuntu-512mb-fra1-01 caddy[25687]: Already up-to-date.
  124. May 01 19:20:23 ubuntu-512mb-fra1-01 caddy[25687]: 2018/05/01 19:20:23 https://gitlab.com/frederikcreemers/frederikcreemers.be.git pulled.
  125. May 01 19:20:23 ubuntu-512mb-fra1-01 caddy[25687]: Activating privacy features... done.
  126. May 01 19:20:23 ubuntu-512mb-fra1-01 caddy[25687]: http://:2015
Add Comment
Please, Sign In to add comment