diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/shione/nginx/debian/changelog | 5 | ||||
-rw-r--r-- | config/shione/nginx/debian/compat | 1 | ||||
-rw-r--r-- | config/shione/nginx/debian/control | 16 | ||||
-rw-r--r-- | config/shione/nginx/debian/copyright | 8 | ||||
-rw-r--r-- | config/shione/nginx/debian/nginx-config.hide | 1 | ||||
-rw-r--r-- | config/shione/nginx/debian/nginx-config.install | 1 | ||||
-rwxr-xr-x | config/shione/nginx/debian/rules | 4 | ||||
-rw-r--r-- | config/shione/nginx/debian/source/format | 1 | ||||
-rw-r--r-- | config/shione/nginx/files/etc/nginx/sites-available/homepage.conf | 52 | ||||
l--------- | config/shione/nginx/files/etc/nginx/sites-enabled/homepage.conf | 1 |
10 files changed, 90 insertions, 0 deletions
diff --git a/config/shione/nginx/debian/changelog b/config/shione/nginx/debian/changelog new file mode 100644 index 0000000..25fb9aa --- /dev/null +++ b/config/shione/nginx/debian/changelog @@ -0,0 +1,5 @@ +nginx-config (1.0) unstable; urgency=low + + * Initial release. + + -- Renken <renken@shione.net> Sun, 24 Dec 2023 19:32:00 +0100 diff --git a/config/shione/nginx/debian/compat b/config/shione/nginx/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/config/shione/nginx/debian/compat @@ -0,0 +1 @@ +9 diff --git a/config/shione/nginx/debian/control b/config/shione/nginx/debian/control new file mode 100644 index 0000000..4b5b056 --- /dev/null +++ b/config/shione/nginx/debian/control @@ -0,0 +1,16 @@ +Source: nginx-config +Section: tasks +Priority: optional +Maintainer: Renken <renken@shione.net> +Rules-Requires-Root: no +Build-Depends: debhelper (>= 13.11~), config-package-dev (>= 4.15~) +Standards-Version: 4.1.0 + +Package: nginx-config +Architecture: all +Multi-Arch: foreign +Depends: ${misc:Depends}, nginx +Provides: ${diverted-files} +Conflicts: ${diverted-files} +Description: Shione nginx configuration. + Shione nginx configuration. diff --git a/config/shione/nginx/debian/copyright b/config/shione/nginx/debian/copyright new file mode 100644 index 0000000..2fff8a7 --- /dev/null +++ b/config/shione/nginx/debian/copyright @@ -0,0 +1,8 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://gitlab.com/renken/nichijou +Upstream-Contact: Renken <renken@shione.net> + +Files: + * +Copyright: 2023, Renken <renken@shione.net> +License: GPL-3 diff --git a/config/shione/nginx/debian/nginx-config.hide b/config/shione/nginx/debian/nginx-config.hide new file mode 100644 index 0000000..065ff61 --- /dev/null +++ b/config/shione/nginx/debian/nginx-config.hide @@ -0,0 +1 @@ +/etc/nginx/sites-enables/defaut diff --git a/config/shione/nginx/debian/nginx-config.install b/config/shione/nginx/debian/nginx-config.install new file mode 100644 index 0000000..5b79850 --- /dev/null +++ b/config/shione/nginx/debian/nginx-config.install @@ -0,0 +1 @@ +files/* / diff --git a/config/shione/nginx/debian/rules b/config/shione/nginx/debian/rules new file mode 100755 index 0000000..a089a9e --- /dev/null +++ b/config/shione/nginx/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with config-package diff --git a/config/shione/nginx/debian/source/format b/config/shione/nginx/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/config/shione/nginx/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/config/shione/nginx/files/etc/nginx/sites-available/homepage.conf b/config/shione/nginx/files/etc/nginx/sites-available/homepage.conf new file mode 100644 index 0000000..8dde59a --- /dev/null +++ b/config/shione/nginx/files/etc/nginx/sites-available/homepage.conf @@ -0,0 +1,52 @@ +## +# You should look at the following URL's in order to grasp a solid understanding +# of Nginx configuration files in order to fully unleash the power of Nginx. +# https://www.nginx.com/resources/wiki/start/ +# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ +# https://wiki.debian.org/Nginx/DirectoryStructure +# +# In most cases, administrators will remove this file from sites-enabled/ and +# leave it as reference inside of sites-available where it will continue to be +# updated by the nginx packaging team. +# +# This file will automatically load configuration files provided by other +# applications, such as Drupal or Wordpress. These applications will be made +# available underneath a path with that package name, such as /drupal8. +# +# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. +## + +# Default server configuration +# +server { + listen 80 default_server; + listen [::]:80 default_server; + + # SSL configuration + # + # listen 443 ssl default_server; + # listen [::]:443 ssl default_server; + # + # Note: You should disable gzip for SSL traffic. + # See: https://bugs.debian.org/773332 + # + # Read up on ssl_ciphers to ensure a secure configuration. + # See: https://bugs.debian.org/765782 + # + # Self signed certs generated by the ssl-cert package + # Don't use them in a production server! + # + # include snippets/snakeoil.conf; + + root /var/www/html/www.shione.net; + + index index.html; + + server_name shione.net www.shione.net; + + location / { + # First attempt to serve request as file, then + # as directory, then fall back to displaying a 404. + try_files $uri $uri/ =404; + } +} diff --git a/config/shione/nginx/files/etc/nginx/sites-enabled/homepage.conf b/config/shione/nginx/files/etc/nginx/sites-enabled/homepage.conf new file mode 120000 index 0000000..040f974 --- /dev/null +++ b/config/shione/nginx/files/etc/nginx/sites-enabled/homepage.conf @@ -0,0 +1 @@ +../sites-available/homepage.conf
\ No newline at end of file |