Skip to content

Commit 531f9b7

Browse files
committed
Update
1 parent 8847ea9 commit 531f9b7

File tree

7 files changed

+68
-70
lines changed

7 files changed

+68
-70
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OSPicture [![Build Status](https://travis-ci.org/MrChebik/OSPicture.svg?branch=master)](https://travis-ci.org/MrChebik/OSPicture) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/d403a319ed024a21b8db2956c7f97087)](https://www.codacy.com/app/mrchebik/OSPicture?utm_source=github.com&utm_medium=referral&utm_content=MrChebik/OSPicture&utm_campaign=badger)
2-
> Hosting the [images](http://ospicture.xyz/image/31b548211f) with [multiply uploads](http://ospicture.xyz/folder/08lahwa3cv), checking of checksum, lossless optimization.
2+
> Hosting the images with multiply uploads, checking of checksum, lossless optimization.
33
44
## Getting Started
55
1. Setting _utf8_ encoding in _MySQL_:

nginx.conf

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
user nginx;
2+
worker_processes 1;
3+
4+
error_log /var/log/nginx/error.log crit;
5+
pid /var/run/nginx.pid;
6+
7+
8+
events {
9+
worker_connections 1024;
10+
multi_accept on;
11+
}
12+
13+
14+
http {
15+
include /etc/nginx/mime.types;
16+
default_type application/octet-stream;
17+
18+
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
19+
'$status $body_bytes_sent "$http_referer" '
20+
'"$http_user_agent" "$http_x_forwarded_for"';
21+
22+
access_log off;
23+
24+
open_file_cache max=200000 inactive=20s;
25+
open_file_cache_valid 30s;
26+
open_file_cache_min_uses 2;
27+
open_file_cache_errors on;
28+
29+
sendfile on;
30+
tcp_nopush on;
31+
tcp_nodelay on;
32+
expires 1d;
33+
34+
proxy_cache_path /var/cache/nginx levels=2:2 keys_zone=default:256m;
35+
36+
keepalive_timeout 30;
37+
keepalive_requests 100;
38+
39+
reset_timedout_connection on;
40+
41+
gzip on;
42+
gzip_disable "msie6";
43+
gzip_proxied expired no-cache no-store private auth;
44+
gzip_comp_level 5;
45+
gzip_min_length 232;
46+
gzip_types *;
47+
gzip_static on;
48+
49+
client_max_body_size 11m;
50+
client_body_timeout 30;
51+
send_timeout 2;
52+
53+
include /etc/nginx/conf.d/*.conf;
54+
}

nginx_default.conf

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
server {
2+
listen 80;
3+
server_name ospicture.xyz;
4+
5+
location / {
6+
proxy_pass http://127.0.0.1:8446/;
7+
proxy_cache default;
8+
proxy_cache_valid 200 302 10m;
9+
proxy_cache_valid 404 1m;
10+
}
11+
12+
error_page 404 /404.html;
13+
}

pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@
4040
<groupId>org.apache.tomcat.embed</groupId>
4141
<artifactId>tomcat-embed-jasper</artifactId>
4242
</dependency>
43-
<dependency>
44-
<groupId>com.rollbar</groupId>
45-
<artifactId>rollbar</artifactId>
46-
<version>0.5.4</version>
47-
</dependency>
4843
<dependency>
4944
<groupId>org.bouncycastle</groupId>
5045
<artifactId>bcpkix-jdk15on</artifactId>

src/main/java/ru/mrchebik/bean/RollbarBean.java

-28
This file was deleted.

src/main/java/ru/mrchebik/exception/RollbarExceptionHandler.java

-32
This file was deleted.

src/main/java/ru/mrchebik/utils/FileUtils.java

-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
*/
2222
@Component
2323
public class FileUtils {
24-
/*private File currFolder;*/
25-
2624
private final BigDecimal kb;
2725
private final List<String> supportedFormats;
2826

@@ -55,8 +53,6 @@ public FileUtils(/*ZipUtils zipUtils*/) {
5553
creator.mkdir();
5654
}
5755
}
58-
59-
Graph<File> graphOfFolders = new Graph<>();
6056
}*/
6157
}
6258

0 commit comments

Comments
 (0)