c6784522a4
Create the initial Dockerfile of aptly used to manage Debian repository. Story: 2008846 Task: 43026 Signed-off-by: ZhangXiao <xiao.zhang@windriver.com> Change-Id: I4a2fe2d7922c9f535275f7c56c06a062de446ca4
17 lines
291 B
Plaintext
17 lines
291 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
server_name $HOSTNAME;
|
|
|
|
if ( $https = "on" ) {
|
|
return 301 http://$host$request_uri;
|
|
}
|
|
|
|
root /var/aptly/public;
|
|
|
|
location / {
|
|
autoindex on;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|