diff --git a/config.ini.example b/config.ini.example
new file mode 100644
index 0000000000000000000000000000000000000000..b361d541985c480f721df2634568e8d12c2ae4ed
--- /dev/null
+++ b/config.ini.example
@@ -0,0 +1,15 @@
+[MAIN]
+VIDEOS_RAW=/mnt/raw
+VIDEOS_RELEASED=/mnt/released
+
+[API]
+KEY=
+BASE=http://localhost:5000
+
+[JOBS]
+TYPES=thumbnail
+
+[thumbnail]
+width=640
+height=-1
+folder=thumbnail
diff --git a/worker.py b/worker.py
index 6ab8dba08de52fb05083e0f867da1a54af796364..b8dabfbb403ce0ae6f17febd875b09c7f4ab4334 100755
--- a/worker.py
+++ b/worker.py
@@ -21,8 +21,8 @@ data = json.loads(sys.argv[4])
 print(sys.argv)
 
 if (jobtype == 'thumbnail'):
-	inputfile  = '/mnt/sshfs/video-main/'+data['path']
-	outputfile = '/tmp/l_'+str(data['lectureid'])+'.png'
+	inputfile  = config['MAIN']['VIDEOS_RELEASED']+'/'+data['path']
+	outputfile = config['MAIN']['VIDEOS_RELEASED']+'/'+config['thumbnail']['folder']+'/'+'l_'+str(data['lectureid'])+'.jpg'
 	api.job_ping(id=id)
 	duration = float(subprocess.run(["ffprobe", "-v", "error", "-show_entries", "format=duration", "-of", "default=noprint_wrappers=1:nokey=1", inputfile], stdout=subprocess.PIPE).stdout)
 	api.job_ping(id=id)