Skip to content

Commit

Permalink
Add httpd ser2net and tftpd.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevanradakovic committed Dec 27, 2019
1 parent cbf8929 commit 082dd90
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 0 deletions.
2 changes: 2 additions & 0 deletions httpd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM httpd
COPY httpd.conf /usr/local/apache2/conf/httpd.conf
82 changes: 82 additions & 0 deletions httpd/httpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
ServerRoot "/usr/local/apache2"
Listen 80
LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule filter_module modules/mod_filter.so
LoadModule mime_module modules/mod_mime.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule headers_module modules/mod_headers.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so

<IfModule unixd_module>
User daemon
Group daemon
</IfModule>

ServerAdmin [email protected]

#ServerName www.example.com:80

<Directory />
AllowOverride none
Require all denied
</Directory>

DocumentRoot "/var/lib/lava/dispatcher/tmp"
<Directory "/var/lib/lava/dispatcher/tmp">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

<Files ".ht*">
Require all denied
</Files>

ErrorLog /proc/self/fd/2
LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog /proc/self/fd/1 common
</IfModule>

<IfModule headers_module>
RequestHeader unset Proxy early
</IfModule>

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

7 changes: 7 additions & 0 deletions ser2net/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM debian:stable

# install tftp package
RUN apt-get update
RUN apt-get install -y --no-install-recommends ser2net

CMD echo -n "Starting " && ser2net -v && ser2net -d -c /etc/ser2net.conf
4 changes: 4 additions & 0 deletions ser2net/ser2net.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
7001:telnet:0:/dev/serial/by-id/usb-FTDI_TTL232R-3V3_FT914B60-if00-port0:115200 8DATABITS NONE 1STOPBIT LOCAL
7002:telnet:0:/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL03HJDR-if00-port0:115200 8DATABITS NONE 1STOPBIT LOCAL
7003:telnet:0:/dev/serial/by-id/usb-FTDI_TTL232R-3V3_FT9PB4QT-if00-port0:115200 8DATABITS NONE 1STOPBIT LOCAL
7004:telnet:0:/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A907DVD3-if00-port0:115200 8DATABITS NONE 1STOPBIT LOCAL
8 changes: 8 additions & 0 deletions tftpd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM debian:stable

# install tftp package
RUN apt-get update
RUN apt-get install -y tftpd-hpa

CMD in.tftpd -L --user tftp -a 0.0.0.0:69 -s -B1468 -v /srv/tftp

0 comments on commit 082dd90

Please sign in to comment.