Matt Baer
df4cd9ed00
Add --create-admin option
...
This enables automated user creation by running:
writefreely --create-admin username:password
It will fail if an admin (first user) already exists, which makes this
suitable for use on both for single- and multi-user instances.
Closes T544
6 years ago
Matt Baer
8ceb165020
Bump version to 0.5
6 years ago
Matt Baer
fe78d6d47f
Re-add https in log message
6 years ago
Marcel van der Boom
875c758ba2
Also use bind address on standalone redirect
6 years ago
Marcel van der Boom
543f6c9ae3
Allow 'bind' in config to specify bind address
...
Minimal changes, definitely WIP, to resolve:
- how to support dualstack when not using localhost?
- net/http package uses string, mentions IP address instead of bind,
need info.
6 years ago
Matt Baer
42a47258da
Bump version to 0.4
6 years ago
Matt Baer
f0250d501f
Move softwareVer to var() block
6 years ago
Matt Baer
09f5953431
Work as a standalone server, including TLS
...
This supports running the server on port 443, serving secure pages, with
automatic redirects from the insecure site. It also modifies the
configuration process to better guide users through configuring for
running behind a reverse proxy or as a standalone server.
This closes T537
6 years ago
Matt Baer
77e79acd06
Include About/Privacy page content in page description
6 years ago
Matt Baer
be2c7ef86b
Show instance stats on About page
...
This also moves the stats database logic out of nodeinfo.go and into
database.go.
6 years ago
Matt Baer
b9d7d4ce24
Change default database name to writefreely
...
(not writeas)
6 years ago
Matt Baer
f3df2b4159
Use and validate database type before connecting
...
Just the start of changes needed for T529.
6 years ago
Marcel van der Boom
b030921691
Don't automatically include "v" from git
...
- "v" should not be part of the version (softwareVer variable is used
in other places)
- formatting
6 years ago
Marcel van der Boom
c25d0bef67
Get versioninfo from the git repository
...
Sets value of softwareVer during build
6 years ago
Matt Baer
bdc4f270f8
Support editing About and Privacy pages from Admin panel
...
This allows admin to edit these pages from the web, using Markdown. It
also dynamically loads information on those pages now, and makes loading
`pages` templates a little easier to find in the code / more explicit.
It requires this new schema change:
CREATE TABLE IF NOT EXISTS `appcontent` (
`id` varchar(36) NOT NULL,
`content` mediumtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
This closes T533
6 years ago
Matt Baer
ad1180f202
Bump version to 0.3
6 years ago
Matt Baer
ed1b77ea3b
Support outputting version with -v flag
6 years ago
Matt Baer
0eac9251c0
Add location to MySQL connection string
...
This should address #23
6 years ago
Matt Baer
9016f87041
Add --reset-pass option for admin pass reset
...
Usage: writefreely --reset-pass <username>
This closes #25 , closes T534
6 years ago
Matt Baer
b1686b1d46
Add --init-db flag to create schema in app
...
Part of T530
6 years ago
Matt Baer
bf44236748
Bump version to 0.2.1
6 years ago
Matt Baer
002d0e6309
Bump version to 0.2
6 years ago
Matt Baer
7bc873580c
Move key generation to app from keys.sh
...
This eliminates an external dependency needed for install, and ensures
the app can run on Windows.
6 years ago
Matt Baer
1cb593fd8c
Fix unnecessarily connecting to DB after multi-user config
6 years ago
Matt Baer
ae019e4dc3
Show error when ListenAndServe fails
...
and exit with 1
6 years ago
Matt Baer
a6478f1b1d
Create blog during config for single-user blogs
6 years ago
Matt Baer
5a062eb437
Include flashes on signup page
6 years ago
Matt Baer
be31da2fe7
Tweak capitalization / spacing in Write Freely name
...
This affects nodeinfo and ActivityPub requests
6 years ago
Matt Baer
55ada67170
Fill in remaining missing pieces
...
- Database schema changes, removing obsolete custom domain-related code
- Missing user structs
- Setup verbiage changes
- Missing routes
- Missing error messages
6 years ago
Matt Baer
86e7ba2579
Add editor
...
This includes the '/' route handler
6 years ago
Matt Baer
a30fc5b52b
Add handler, page, template loading
6 years ago
Matt Baer
a3b7b260c5
Add debugging flag
...
This also includes a new Dev config options
6 years ago
Matt Baer
cc224db6e6
Add interactive configuration
...
This adds a new --config flag and rearranges some config fields.
6 years ago
Matt Baer
6bdb7a1c1c
Output config saving errors
6 years ago
Matt Baer
1a6f61690e
Add NodeInfo endpoints
...
Includes new instance stats and the new option to show user stats, as
well.
6 years ago
Matt Baer
0c1e1dd57e
Add data layer
...
This includes config changes, collections, posts, some post rendering
funcs, and actual database connection when the server starts up.
6 years ago
Matt Baer
62abc11142
Add web session management
6 years ago
Matt Baer
af601d7b0c
Add --create-config flag to generate default config
6 years ago
Matt Baer
16473c97b7
Create basic server
...
Includes app config and some initialization
6 years ago