Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

  • Test xwiki.cfg - xwiki.store.versioning=0 to prevent page versions for tagging etc
  • Set created date/time on Blogposts (not only publised date) - SQL Seems to be the way (afkryds) 
  • Set  created date/time on pages (less important) - SQL Seems to be the way (afkryds) 
  • Improve logging from convert.py a bitbit (afkryds) 
  • Limit access to User Index (a personal need) (afkryds) 
  • Implement robots.txt in docker (afkryds) 
  • Disable public user Registration (afkryds) 

Install XWiki as a Docker solution

...

Kodeblok
titledocker-compose.yml
networks:
  bridge:
    driver: bridge
services:
  # The container that runs XWiki in Tomcat, with the appropriate JDBC driver (for postgres).
  web:
    image: "xwiki:${XWIKI_VERSION}-postgres-tomcat"
    container_name: xwiki-postgres-tomcat-web
    restart: unless-stopped
    depends_on:
      - db
    ports:
      - "8080:8080"
    # Default values defined in .env file.
    # The DB_USER/DB_PASSWORD/DB_DATABASE/DB_HOST variables are used in the hibernate.cfg.xml file.
    environment:
      - XWIKI_VERSION=${XWIKI_VERSION}
      - DB_USER=${DB_USER}
      - DB_PASSWORD=${DB_PASSWORD}
      - DB_DATABASE=${DB_DATABASE}
      - DB_HOST=xwiki-postgres-db
      - JAVA_OPTS="-Xmx2048m"
      - TZ=Europe/Copenhagen
    # Provide a name instead of an auto-generated id for xwiki data (the permanent directory in included in it)
    # configured in the Dockerfile, to make it simpler to identify in 'docker volume ls'.
    volumes:
      - /data/xwiki/xwiki-data:/usr/local/xwiki
      - /opt/xwiki/robots.txt:/usr/local/xwiki/webapps/ROOT/robots.txt
    networks:
      - bridge
  # The container that runs the database (postgres)
  db:
    image: "postgres:17"
    container_name: xwiki-postgres-db
    restart: unless-stopped
    volumes:
      - /data/xwiki/postgres-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_ROOT_PASSWORD=${POSTGRES_ROOT_PASSWORD}
      - POSTGRES_PASSWORD=${DB_PASSWORD}
      - POSTGRES_USER=${DB_USER}
      - POSTGRES_DB=${DB_DATABASE}
      - POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale-provider=builtin --locale=C.UTF-8
    networks:
      - bridge

...

  • Blog Application
  • Attachments Macro
  • Video Macro
  • Diagram Application
  • PDF Viewer Macro
  • Youtube Macro

Other possible

  • Map Macro
  • Numbered Headings Application

Migrate

Tip

If You use Gliffy in Confluence, install Draw.io on Confluence as trial and migrate all Gliffy drawings to Draw.io - As the Gliffy macro etc is not supported at all in XWiki.

...

Disable Registration in the Amin UI (If You want to)

Under "Rights" - set it explicit:

Image Added


Disable URLs

XWiki is very "open" and for an external website use, we want to block a few URL's

User Index:

Kodeblok
RewriteEngine On
RewriteRule ^/bin/view/Main/UserDirectory - [F,L]

Application Index:

Kodeblok
RewriteRule ^/bin/view/Applications/ - [F,L]

Wiki Index:

Kodeblok
RewriteRule ^/bin/view/WikiManager/ - [F,L]

User Registration:

Kodeblok
RewriteRule ^/bin/register - [F,L]


Enable CKEditor features

Pr. default the CKEditor toolbar is very limited in functionality, in the Administrator backend is possible to enable more toolbar features:

https://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor%20Integration/#HStandardCKEditorFeatures