mirror of
				https://gitlab.com/octospacc/Configs.git
				synced 2025-06-05 21:59:36 +02:00 
			
		
		
		
	Auto-Backup $'Tue Oct 15 2024 01:18:33 GMT+0200 (Central European Summer Time)'
This commit is contained in:
		| @@ -31,7 +31,6 @@ for (const folder of allDirsList) { | ||||
| 		if (fileDate > maxDate) { | ||||
| 			continue; | ||||
| 		} | ||||
| 		console.log(1, file); | ||||
| 		//await $`rm ${file}`; | ||||
| 		await $`rm ${file}`; | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -85,7 +85,7 @@ server { | ||||
| 		#sub_filter '<a ' '</span><a '; | ||||
| 		#sub_filter '<pre>' '<pre><span>'; | ||||
| 		#sub_filter '</pre>' '</span></pre>'; | ||||
| 		sub_filter '</head>' '\n<meta name="viewport" content="width=device-width, initial-scale=1.0"/>\n<link rel="stylesheet" href="/Res/NginxIndex.css"/>\n</head>'; | ||||
| 		sub_filter '</head>' '\n<meta charset="utf8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/>\n<link rel="stylesheet" href="/Res/NginxIndex.css"/>\n</head>'; | ||||
| 		sub_filter '</h1>' '</h1>\n<input type="checkbox" id="ToggleMetadata" checked="checked"/><label for="ToggleMetadata"> Metadata</label>\n'; | ||||
| 		sub_filter '<h1>Index of /Drive/' '<h1>Index of <a href="/Drive/">/Drive</a>/'; | ||||
| 		sub_filter '</body>' '<script>top.postMessage(location.href.slice(location.origin.length), "https://hlb0it.blogspot.com")</script></body>'; | ||||
|   | ||||
							
								
								
									
										38
									
								
								Server/Root/etc/nginx/sites-available/sangowiki.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								Server/Root/etc/nginx/sites-available/sangowiki.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| server { | ||||
| 	listen 80; | ||||
| 	server_name sangowiki.octt.eu.org; | ||||
| 	root /Main/Server/www/sangowiki; | ||||
| 	index doku.php; | ||||
|  | ||||
| 	# Loggers | ||||
| 	error_log /var/log/nginx/sangowiki.error.log; | ||||
| 	access_log /var/log/nginx/sangowiki.access.log; | ||||
|  | ||||
| 	#Remember to comment the below out when you're installing, and uncomment it when done. | ||||
| 	#location ~ /(conf/|bin/|inc/|vendor/|install.php) { deny all; } | ||||
|  | ||||
| 	#Support for X-Accel-Redirect | ||||
| 	location ~ ^/data/ { internal ; } | ||||
|  | ||||
| 	location ~ ^/lib.*\.(js|css|gif|png|ico|jpg|jpeg)$ { | ||||
| 		expires 365d; | ||||
| 	} | ||||
|  | ||||
| 	location / { try_files $uri $uri/ @dokuwiki; } | ||||
|  | ||||
| 	location @dokuwiki { | ||||
| 		# rewrites "doku.php/" out of the URLs if you set the userwrite setting to .htaccess in dokuwiki config page | ||||
| 		rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last; | ||||
| 		rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last; | ||||
| 		rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last; | ||||
| 		rewrite ^/(.*) /doku.php?id=$1&$args last; | ||||
| 	} | ||||
|  | ||||
| 	location ~ \.php$ { | ||||
| 		try_files $uri $uri/ /doku.php; | ||||
| 		include fastcgi_params; | ||||
| 		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||||
| 		fastcgi_param REDIRECT_STATUS 200; | ||||
| 		fastcgi_pass php; | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user