Skip to content

Commit 2d536d1

Browse files
authored
Merge pull request #256 from OpenFactorioServerManager/develop
Update 0.10.0
2 parents 99e32dd + c75c4e7 commit 2d536d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1470
-653
lines changed

.github/workflows/create-release-workflow.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
- uses: actions/checkout@v2
99
- uses: actions/setup-node@v1
1010
- uses: actions/setup-go@v2
11+
- name: Install mingw-w64
12+
run: sudo apt-get update && sudo apt-get install gcc-multilib g++-multilib gcc-mingw-w64 g++-mingw-w64
1113
- name: Get git tag
1214
id: tag_name
1315
uses: little-core-labs/[email protected]

.github/workflows/test-workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ jobs:
6060
docker-push:
6161
needs: [test-npm, test-go]
6262
runs-on: ubuntu-latest
63-
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
63+
if: github.event_name == 'push' && github.ref != 'refs/heads/master'
6464
steps:
6565
- uses: actions/checkout@v2
66+
- uses: rlespinasse/[email protected]
6667
- uses: actions/setup-node@v1
6768
- uses: actions/setup-go@v2
6869
- uses: docker/setup-buildx-action@v1
@@ -78,4 +79,4 @@ jobs:
7879
context: ./docker/
7980
file: ./docker/Dockerfile-local
8081
push: true
81-
tags: ofsm/ofsm:develop
82+
tags: ofsm/ofsm:${{ env.GITHUB_REF_SLUG }}

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
node_modules/
22
dev/
33
dev_packs/
4-
/factorio-server-manager*
5-
/factorio_server_manager*
4+
factorio-server-manager*
5+
factorio_server_manager*
66
auth.leveldb*
77
conf.json
88
*.exe
@@ -18,3 +18,4 @@ mix-manifest.json
1818
/app/*.css*
1919
.vscode
2020
.env
21+
*.db

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

6+
## [Unreleased]
7+
8+
## [0.10.0] - 2021-02-10
9+
### Added
10+
- Config files can be defined with absolute paths. - Thanks to @FoxAmes
11+
- Support for >= 1.1.14 factorio saves - Thanks to @knoxfighter
12+
- Setting in `info.json` to allow usage without ssl/tls - Thanks to @knoxfighter
13+
14+
### Changed
15+
- Rework of the authentication, to have a bit more security. - Thanks to @knoxfighter
16+
- Changed from leveldb to sqlite3 as backend database. - Thanks to @knoxfighter
17+
- generate new random passwords, if no exist, or if they are "factorio". - Thanks to @knoxfighter
18+
- Use "OpenFactorioServerManager" instead of "mroote" as go package name. - Thanks to @mroote
19+
- Disable mods-page, while server is running - Thanks to @knoxfighter
20+
- Renamed GO-package from `mroote` to `OpenFactorioServerManager` to match git repo - Thanks to @mroote
21+
22+
### Fixed
23+
- old factorio versions depended by mods always shown as compatible - Thanks to @knoxfighter
24+
- Crosscompilation with mingw-w64 on linux. (Broke with sqlite3) - Thanks to @knoxfighter
25+
- Crash on async writing to websocket room array. - Thanks to @knoxfighter
26+
627
## [0.9.0] - 2021-01-07
728
### Added
829
- Autostart factorio, when starting the server-manager - Thanks to @Psychomantis71
@@ -13,7 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1334
- Rework of the docker image, so it allows easy updating of factorio - Thanks to @ita-sammann
1435

1536
### Fixed
16-
- Console page is now working correctly (directly reloading still bugged until new UI) - Thanks to @jannaahs
37+
- Console page is now working correctly - Thanks to @jannaahs
1738
- Mod Search fixed by new implementation, which does not rely on the search endpoint of the mod portal - Thanks to @jannaahs
1839
- Listen on port 80, previously port 8080 was used. Can be changed with `--port <port>`
1940
- Update version numbers in Docker containers

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ build/factorio-server-manager-%.zip: clean app/bundle factorio-server-manager-%
1818
@cp -r app/ factorio-server-manager/
1919
@cp conf.json.example factorio-server-manager/conf.json
2020
@zip -r $@ factorio-server-manager > /dev/null
21+
@rm -r factorio-server-manager/
2122

2223
app/bundle:
2324
@echo "Building Frontend"
@@ -27,13 +28,13 @@ factorio-server-manager-linux:
2728
@echo "Building Backend - Linux"
2829
@mkdir -p factorio-server-manager
2930
@cd src; \
30-
GO111MODULE=on GOOS=linux GOARCH=amd64 go build -ldflags="-extldflags=-static" -o ../factorio-server-manager/factorio-server-manager .
31+
CGO_ENABLED=1 GO111MODULE=on GOOS=linux GOARCH=amd64 go build -ldflags="-extldflags=-static" -o ../factorio-server-manager/factorio-server-manager .
3132

3233
factorio-server-manager-windows:
3334
@echo "Building Backend - Windows"
3435
@mkdir -p factorio-server-manager
3536
@cd src; \
36-
GO111MODULE=on GOOS=windows GOARCH=386 go build -ldflags="-extldflags=-static" -o ../factorio-server-manager/factorio-server-manager.exe .
37+
GO111MODULE=on GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build -ldflags="-extldflags=-static" -o ../factorio-server-manager/factorio-server-manager.exe .
3738

3839
gen_release: build/factorio-server-manager-linux.zip build/factorio-server-manager-windows.zip
3940
@echo "Done"

conf.json.example

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
2-
"username": "admin",
3-
"password": "factorio",
4-
"database_file": "auth.leveldb",
5-
"cookie_encryption_key": "topsecretkey",
6-
"settings_file": "server-settings.json",
7-
"log_file": "factorio-server-manager.log",
8-
"rcon_pass": "factorio_rcon"
2+
"rcon_pass": "",
3+
"sq_lite_database_file": "sqlite.db",
4+
"cookie_encryption_key": "",
5+
"settings_file": "server-settings.json",
6+
"log_file": "factorio-server-manager.log"
97
}

docker/.env

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
ADMIN_USER=admin
2-
ADMIN_PASS=factorio
31
RCON_PASS=
4-
COOKIE_ENCRYPTION_KEY=
52
DOMAIN_NAME=<YOUR DOMAIN NAME>
63
EMAIL_ADDRESS=<YOUR EMAIL ADDRESS>

docker/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
FROM frolvlad/alpine-glibc
33

44
ENV FACTORIO_VERSION=stable \
5-
MANAGER_VERSION=0.9.0 \
6-
ADMIN_USER=admin \
7-
ADMIN_PASS=factorio \
8-
RCON_PASS="" \
9-
COOKIE_ENCRYPTION_KEY=""
5+
MANAGER_VERSION=0.10.0 \
6+
RCON_PASS=""
107

118
VOLUME /opt/fsm-data /opt/factorio/saves /opt/factorio/mods /opt/factorio/config
129

docker/Dockerfile-build

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
FROM alpine:latest as build
22

3-
RUN apk add --no-cache git make musl-dev go nodejs npm zip
3+
RUN apk add --no-cache git make musl-dev go nodejs npm zip mingw-w64-gcc
44

5-
ENV FACTORIO_BRANCH=develop
65
ENV GOROOT /usr/lib/go
76
ENV GOPATH /go
87
ENV PATH /go/bin:$PATH
98
ENV FACTORIO_ROOT /go/src/factorio-server-manager
109

11-
COPY build-release.sh /usr/local/bin/build-release.sh
10+
COPY docker/build-release.sh /usr/local/bin/build-release.sh
11+
COPY ./ $FACTORIO_ROOT
1212

1313
RUN mkdir -p ${GOPATH}/bin
1414
RUN chmod u+x /usr/local/bin/build-release.sh
1515

1616
WORKDIR $FACTORIO_ROOT
1717

1818
VOLUME /build
19+
VOLUME $FACTORIO_ROOT
1920

2021
RUN ["/usr/local/bin/build-release.sh"]
2122

docker/Dockerfile-local

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
FROM frolvlad/alpine-glibc
33

44
ENV FACTORIO_VERSION=latest \
5-
ADMIN_USER=admin \
6-
ADMIN_PASS=factorio \
7-
RCON_PASS="" \
8-
COOKIE_ENCRYPTION_KEY=""
5+
RCON_PASS=""
96

107
VOLUME /opt/fsm-data /opt/factorio/saves /opt/factorio/mods /opt/factorio/config
118

0 commit comments

Comments
 (0)