Skip to content

Commit 7e56c87

Browse files
author
Hooram Nam
committed
before switching to dev
1 parent 39d0e2c commit 7e56c87

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ EXPOSE 5000
112112

113113
COPY . /code
114114

115-
RUN mkdir /code/logs
116115

117116
RUN mv /code/config_docker.py /code/config.py
118117

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ though, make sure http requests get redirected to https. It's important!
148148
server {
149149
# the port your site will be served on
150150
listen 80;
151-
server_name ownphotos-api.example.com; # substitute by your FQDN and
152-
machine's IP address
151+
server_name ownphotos-api.example.com;
153152
charset utf-8;
154153
155154
#Max upload size
@@ -167,14 +166,12 @@ machine's IP address
167166
server {
168167
# the port your site will be served on
169168
listen 80;
170-
server_name ownphotos.example.com; # substitute by your FQDN and
171-
machine's IP address
169+
server_name ownphotos.example.com;
172170
charset utf-8;
173171
174172
#Max upload size
175173
client_max_body_size 75M; # adjust to taste
176174
177-
178175
location / {
179176
proxy_pass http://127.0.0.1:8001;
180177
proxy_set_header Host $host;

scripts/client_bench.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
auth = HTTPBasicAuth('admin','q1W@e3R$')
77

88
start = datetime.datetime.now()
9-
9+
'''
1010
resp_location_sunburst = requests.get('http://localhost:8000/api/locationsunburst/',auth=auth)
1111
print('location_sunburst: \t| %.2f ms'%(resp_location_sunburst.elapsed.total_seconds()*1000))
1212
@@ -38,11 +38,16 @@
3838
# resp_photos = requests.get('http://192.168.1.100:8000/api/photos/list/',auth=auth)
3939
# print(resp_photos.elapsed.total_seconds()*1000)
4040
# resp_photos_json = resp_photos.json()
41-
41+
'''
4242

4343
resp_album_date = requests.get('http://localhost:8000/api/albums/date/photohash/list/',auth=auth)
4444
print('album_date_list: \t| %.2f ms'%(resp_album_date.elapsed.total_seconds()*1000))
4545

46+
resp_photo_list = requests.get('http://localhost:8000/api/photos/list/',auth=auth)
47+
print('photo_list: \t| %.2f ms'%(resp_photo_list.elapsed.total_seconds()*1000))
48+
49+
resp_fav_photo_list = requests.get('http://localhost:8000/api/photos/favorites/',auth=auth)
50+
print('fav_photo_list: \t| %.2f ms'%(resp_fav_photo_list.elapsed.total_seconds()*1000))
4651

4752

4853
# resp_album_auto = requests.get('http://localhost:8000/api/albums/auto/list/',auth=auth).json()

0 commit comments

Comments
 (0)