add import instructions
This commit is contained in:
@@ -49,7 +49,6 @@ Remark42 is a self-hosted, lightweight, and simple (yet functional) comment engi
|
||||
| --site | | `remark` | no | import | site ID |
|
||||
| --file | | `disqus.xml` | no | import | import file |
|
||||
|
||||
|
||||
#### Run modes
|
||||
|
||||
- `server` activates regular, server mode
|
||||
@@ -94,6 +93,16 @@ _instructions for google oauth2 setup borrowed from [oauth2_proxy](https://githu
|
||||
1. Under **"Facebook login"** / **"Settings"** fill "Valid OAuth redirect URIs" with your callback url constructed as domain + `/auth/facebook/callback`
|
||||
1. Select **"App Review"** and turn public flag on. This step may ask you to provide a link to your privacy policy.
|
||||
|
||||
#### Initial import from disqus
|
||||
|
||||
You can migrate comments from disqus. This procedure runs on server and works with disqus export file.
|
||||
|
||||
1. Disqus provides an export of all comments on your site in a g-zipped file. This is found in your Moderation panel at Disqus Admin > Setup > Export. The export will be sent into a queue and then emailed to the address associated with your account once it's ready.
|
||||
2. Move this file to your remark42 host and unzip.
|
||||
3. Stop remark42 containers if started, i.e. `docker-compose stop`
|
||||
4. Run import command - `docker-compose run --rm /srv/remark import --file=<disqus-export-xml> --site=<your site id>`
|
||||
5. Start remark42 containers `docker-compose up -d`
|
||||
|
||||
### Frontend
|
||||
|
||||
TBD
|
||||
|
||||
+2
-3
@@ -83,10 +83,9 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
srvOpts := opts.ServerCommand
|
||||
dataService := store.Service{Interface: dataStore, EditDuration: 5 * time.Minute}
|
||||
sessionStore := func() sessions.Store {
|
||||
sess := sessions.NewFilesystemStore(srvOpts.SessionStore, []byte(srvOpts.StoreKey))
|
||||
sess := sessions.NewFilesystemStore(opts.ServerCommand.SessionStore, []byte(opts.ServerCommand.StoreKey))
|
||||
sess.Options.HttpOnly = true
|
||||
sess.Options.Secure = true
|
||||
sess.Options.MaxAge = 3600 * 24 * 365
|
||||
@@ -120,7 +119,7 @@ func main() {
|
||||
}.Do()
|
||||
}
|
||||
|
||||
srv.Run(srvOpts.Port)
|
||||
srv.Run(opts.ServerCommand.Port)
|
||||
}
|
||||
|
||||
// makeBoltStore creates store for all sites
|
||||
|
||||
Reference in New Issue
Block a user