mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-24 13:41:52 +00:00
64683ad93f
Update base system to Ubuntu 18.04. .htaccess file's session path changed correctly. Add gnupg install choice, due to base system has no gpg support. Set DEBIAN_FRONTEND to noninteractive in order to prevent tzdata stuck. Change Dockerfile's verion and buanch checkout method, in order to save space. Fix mysql conf when not restart service and the database can't import judger info. Change install.sh, support PHP7.2, update libv8 repo to artful, with missing php-mbstring. The old JDK distfile mirrors are deprecated, changed to official.sed modded to get the latest jdk8. BREAKING CHANGE: Ubuntu 14/16 users shouln't execute this script, due to config files and packages not the same.
24 lines
477 B
ApacheConf
24 lines
477 B
ApacheConf
Options -Indexes
|
|
|
|
php_value session.save_path /var/lib/php/uoj_sessions
|
|
php_value session.gc_maxlifetime 172800
|
|
php_value session.cookie_lifetime 31536000
|
|
|
|
php_value post_max_size 1000M
|
|
php_value upload_max_filesize 1000M
|
|
|
|
php_value session.gc_probability 1
|
|
php_value session.gc_divisor 1000
|
|
|
|
DirectorySlash Off
|
|
|
|
DirectoryIndex
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{QUERY_STRING} ^$
|
|
RewriteRule ^(.*)/$ /$1 [L,R=301]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^ index.php [L]
|