Commit 42185fe7 authored by hengwen's avatar hengwen

Clean up

parent 46a4e095
<zone>
<name>World</name>
<isCustomLogin>false</isCustomLogin>
<isForceLogout>true</isForceLogout>
<applyWordsFilterToUserName>true</applyWordsFilterToUserName>
<applyWordsFilterToRoomName>true</applyWordsFilterToRoomName>
<applyWordsFilterToPrivateMessages>true</applyWordsFilterToPrivateMessages>
<isFilterBuddyMessages>true</isFilterBuddyMessages>
<isEncrypted>false</isEncrypted>
<maxUsers>1000</maxUsers>
<maxUserVariablesAllowed>5</maxUserVariablesAllowed>
<maxRoomVariablesAllowed>5</maxRoomVariablesAllowed>
<minRoomNameChars>3</minRoomNameChars>
<maxRoomNameChars>10</maxRoomNameChars>
<maxRooms>500</maxRooms>
<maxRoomsCreatedPerUser>3</maxRoomsCreatedPerUser>
<userCountChangeUpdateInterval>1000</userCountChangeUpdateInterval>
<userReconnectionSeconds>0</userReconnectionSeconds>
<overrideMaxUserIdleTime>120</overrideMaxUserIdleTime>
<maxFailedLogins>4</maxFailedLogins>
<allowGuestUsers>true</allowGuestUsers>
<guestUserNamePrefix>Guest#</guestUserNamePrefix>
<publicRoomGroups>default</publicRoomGroups>
<defaultRoomGroups>default</defaultRoomGroups>
<defaultPlayerIdGeneratorClass></defaultPlayerIdGeneratorClass>
<allowInvitationsOnlyForBuddies>false</allowInvitationsOnlyForBuddies>
<maxUsersPerJoinInvitationRequest>5</maxUsersPerJoinInvitationRequest>
<geoLocationEnabled>false</geoLocationEnabled>
<wordsFilter active="false">
<useWarnings>false</useWarnings>
<warningsBeforeKick>3</warningsBeforeKick>
<kicksBeforeBan>2</kicksBeforeBan>
<banDuration>1440</banDuration>
<maxBadWordsPerMessage>0</maxBadWordsPerMessage>
<kicksBeforeBanMinutes>3</kicksBeforeBanMinutes>
<secondsBeforeBanOrKick>5</secondsBeforeBanOrKick>
<warningMessage>Stop swearing or you will be banned</warningMessage>
<kickMessage>Swearing not allowed: you are being kicked</kickMessage>
<banMessage>Too much swearing: you are banned</banMessage>
<wordsFile>config/wordsFile.txt</wordsFile>
<filterMode>BLACKLIST</filterMode>
<banMode>NAME</banMode>
<hideBadWordWithCharacter>*</hideBadWordWithCharacter>
</wordsFilter>
<floodFilter active="false">
<banDurationMinutes>1440</banDurationMinutes>
<maxFloodingAttempts>5</maxFloodingAttempts>
<secondsBeforeBan>5</secondsBeforeBan>
<banMode>NAME</banMode>
<logFloodingAttempts>true</logFloodingAttempts>
<banMessage>Too much flooding, you are banned</banMessage>
</floodFilter>
<rooms/>
<disabledSystemEvents/>
<privilegeManager active="false">
<profiles class="java.util.Arrays$ArrayList">
<a class="profile-array">
<profile id="0">
<name>Guest</name>
<deniedRequests class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>CreateRoom</string>
<string>PrivateMessage</string>
<string>SetRoomVariables</string>
<string>SetUserVariables</string>
<string>ChangeRoomName</string>
<string>ChangeRoomPassword</string>
<string>ChangeRoomCapacity</string>
<string>InitBuddyList</string>
<string>AddBuddy</string>
<string>BlockBuddy</string>
<string>RemoveBuddy</string>
<string>SetBuddyVariables</string>
<string>GoOnline</string>
<string>BuddyMessage</string>
<string>ModeratorMessage</string>
<string>AdminMessage</string>
<string>KickUser</string>
<string>BanUser</string>
</a>
</deniedRequests>
<permissionFlags/>
</profile>
<profile id="1">
<name>Standard</name>
<deniedRequests class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>ModeratorMessage</string>
<string>AdminMessage</string>
<string>KickUser</string>
<string>BanUser</string>
</a>
</deniedRequests>
<permissionFlags class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>ExtensionCalls</string>
</a>
</permissionFlags>
</profile>
<profile id="2">
<name>Moderator</name>
<deniedRequests class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>AdminMessage</string>
</a>
</deniedRequests>
<permissionFlags class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>ExtensionCalls</string>
<string>SuperUser</string>
</a>
</permissionFlags>
</profile>
<profile id="3">
<name>Administrator</name>
<deniedRequests/>
<permissionFlags class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>ExtensionCalls</string>
<string>SuperUser</string>
</a>
</permissionFlags>
</profile>
</a>
</profiles>
</privilegeManager>
<extension>
<name>AllInOne</name>
<type>JAVA</type>
<file>rwth.server.extensions.ZoneExt</file>
<propertiesFile>config.properties</propertiesFile>
<reloadMode>AUTO</reloadMode>
</extension>
<buddyList active="false">
<allowOfflineBuddyVariables>true</allowOfflineBuddyVariables>
<maxItemsPerList>100</maxItemsPerList>
<maxBuddyVariables>15</maxBuddyVariables>
<offlineBuddyVariablesCacheSize>500</offlineBuddyVariablesCacheSize>
<customStorageClass></customStorageClass>
<useTempBuddies>true</useTempBuddies>
<buddyStates class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>Available</string>
<string>Away</string>
<string>Occupied</string>
</a>
</buddyStates>
<badWordsFilter isActive="false"/>
</buddyList>
<databaseManager active="true">
<driverName>org.sqlite.JDBC</driverName>
<connectionString>jdbc:sqlite:extensions/AllInOne/world.db</connectionString>
<userName></userName>
<password></password>
<testSql>SELECT COUNT(*) FROM users;</testSql>
<maxActiveConnections>10</maxActiveConnections>
<maxIdleConnections>10</maxIdleConnections>
<exhaustedPoolAction>FAIL</exhaustedPoolAction>
<blockTime>3000</blockTime>
</databaseManager>
<allowUploads>true</allowUploads>
</zone>
\ No newline at end of file
FROM postgres:latest
COPY ./db-create-script.sql /docker-entrypoint-initdb.d/
\ No newline at end of file
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: area; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE area (
id integer NOT NULL,
minx double precision NOT NULL,
miny double precision NOT NULL,
minz double precision NOT NULL,
maxx double precision NOT NULL,
maxy double precision NOT NULL,
maxz double precision NOT NULL
);
ALTER TABLE area OWNER TO server;
--
-- Name: area_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE area_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE area_id_seq OWNER TO server;
--
-- Name: area_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE area_id_seq OWNED BY area.id;
--
-- Name: entry_node; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE entry_node (
sector_id bigint NOT NULL,
node_osm_id bigint NOT NULL
);
ALTER TABLE entry_node OWNER TO server;
--
-- Name: env_node; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE env_node (
id integer NOT NULL,
x double precision NOT NULL,
y double precision NOT NULL,
z double precision NOT NULL,
osmid bigint NOT NULL,
env_object_id integer NOT NULL,
isintersection smallint NOT NULL
);
ALTER TABLE env_node OWNER TO server;
--
-- Name: env_node_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE env_node_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE env_node_id_seq OWNER TO server;
--
-- Name: env_node_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE env_node_id_seq OWNED BY env_node.id;
--
-- Name: env_object; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE env_object (
id integer NOT NULL,
tag character varying(255) NOT NULL,
osmid bigint NOT NULL,
map_id integer NOT NULL
);
ALTER TABLE env_object OWNER TO server;
--
-- Name: env_object_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE env_object_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE env_object_id_seq OWNER TO server;
--
-- Name: env_object_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE env_object_id_seq OWNED BY env_object.id;
--
-- Name: map; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE map (
id integer NOT NULL,
mname character varying(255) NOT NULL,
src character varying(255) NOT NULL
);
ALTER TABLE map OWNER TO server;
--
-- Name: map_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE map_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE map_id_seq OWNER TO server;
--
-- Name: map_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE map_id_seq OWNED BY map.id;
--
-- Name: overlap_area; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE overlap_area (
id integer NOT NULL,
overlap_a integer NOT NULL,
overlap_b integer NOT NULL,
area_id integer NOT NULL
);
ALTER TABLE overlap_area OWNER TO server;
--
-- Name: overlap_area_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE overlap_area_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE overlap_area_id_seq OWNER TO server;
--
-- Name: overlap_area_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE overlap_area_id_seq OWNED BY overlap_area.id;
--
-- Name: path; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE path (
sector_id bigint NOT NULL,
source bigint NOT NULL,
target bigint NOT NULL,
distance double precision
);
ALTER TABLE path OWNER TO server;
--
-- Name: scenario; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE scenario (
id integer NOT NULL,
sname character varying(255) NOT NULL,
map_id integer NOT NULL
);
ALTER TABLE scenario OWNER TO server;
--
-- Name: scenario_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE scenario_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE scenario_id_seq OWNER TO server;
--
-- Name: scenario_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE scenario_id_seq OWNED BY scenario.id;
--
-- Name: sector; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE sector (
id integer NOT NULL,
map_id integer NOT NULL,
area_id integer NOT NULL
);
ALTER TABLE sector OWNER TO server;
--
-- Name: sector_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE sector_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE sector_id_seq OWNER TO server;
--
-- Name: sector_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE sector_id_seq OWNED BY sector.id;
--
-- Name: street; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE street (
id integer NOT NULL,
speed_limit integer NOT NULL,
width double precision NOT NULL,
isoneway smallint NOT NULL,
env_object_id integer NOT NULL,
street_type character varying(255)
);
ALTER TABLE street OWNER TO server;
--
-- Name: street_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE street_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE street_id_seq OWNER TO server;
--
-- Name: street_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE street_id_seq OWNED BY street.id;
--
-- Name: street_sign; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE street_sign (
id integer NOT NULL,
ss_type character varying(255) NOT NULL,
ss_state character varying(255) NOT NULL,
isone smallint NOT NULL,
istwo smallint NOT NULL,
x1 double precision NOT NULL,
y1 double precision NOT NULL,
z1 double precision NOT NULL,
x2 double precision NOT NULL,
y2 double precision NOT NULL,
z2 double precision NOT NULL,
env_node_id integer NOT NULL
);
ALTER TABLE street_sign OWNER TO server;
--
-- Name: street_sign_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE street_sign_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE street_sign_id_seq OWNER TO server;
--
-- Name: street_sign_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE street_sign_id_seq OWNED BY street_sign.id;
--
-- Name: track; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE track (
id integer NOT NULL,
tname character varying(50) NOT NULL,
scenario_id integer NOT NULL
);
ALTER TABLE track OWNER TO server;
--
-- Name: track_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE track_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE track_id_seq OWNER TO server;
--
-- Name: track_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE track_id_seq OWNED BY track.id;
--
-- Name: track_section; Type: TABLE; Schema: public; Owner: server; Tablespace:
--
CREATE TABLE track_section (
id integer NOT NULL,
track_id bigint,
source bigint NOT NULL,
target bigint NOT NULL,
sector_id bigint NOT NULL
);
ALTER TABLE track_section OWNER TO server;
--
-- Name: track_section_id_seq; Type: SEQUENCE; Schema: public; Owner: server
--
CREATE SEQUENCE track_section_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE track_section_id_seq OWNER TO server;
--
-- Name: track_section_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: server
--
ALTER SEQUENCE track_section_id_seq OWNED BY track_section.id;
--
-- Name: users; Type: TABLE; Schema: public; Owner: server; Tablespace:
--