You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+18-2
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,10 @@ We use local database to store configuration, you can find it `/home/webserver1/
23
23
### php-fpm
24
24
25
25
- add `dyn-9001.custom` to `/home/webserver1/.config/state/php{php version}-fpm-custom.d/` for example `/home/webserver1/.config/state/php7.4-fpm-custom.d/`
26
-
-`vim /home/webserver1/.config/state/php7.4-fpm-custom.d/dyn-9001.custom` and wriite a valid php-fpm configuration
26
+
-`vim /home/webserver1/.config/state/php7.4-fpm-custom.d/dyn-9001.custom` and write a valid php-fpm configuration
27
27
- set the file ownership to webserver1 : `chown webserver1:webserver1 /home/webserver1/.config/state/php7.4-fpm-custom.d/dyn-9001.custom`
28
28
29
-
## sftpgo
29
+
## sftpgo : push the website
30
30
31
31
Sftpgo is used to upload files to the webserver, once the webserver module is installed the default password and user are admin:admin at http://foo.com/sftpgo/, think to change it
Instead of pushing website content to an SFTP server, you can pull the content directly from the container. This method simplifies the content management
72
+
73
+
To pull website content from inside the container once the virtualhost has been created (the vhost ID is the default sftp login: 9001, 9002, 9003, ... ):
- Navigate to the root directory of your virtualhost:
78
+
`cd /usr/share/nginx/html/9001`
79
+
- Use commands like wget to get the latest content , for rsync (to sync files), or git (to pull from a repository) you need to manually first install them each time you restart the container
80
+
`apk add rsync git`
81
+
- permissions can be managed (must be adapted to the website)
82
+
`chown nginx:root -R /usr/share/nginx/html/9001`
83
+
68
84
### Create API key
69
85
70
86
Sftpgo has a rest api that we can use by an API key, this is how we created it
0 commit comments