shione: nginx: init nginx
This commit is contained in:
parent
ae9f353b9f
commit
88092e1f96
10 changed files with 90 additions and 0 deletions
5
config/shione/nginx/debian/changelog
Normal file
5
config/shione/nginx/debian/changelog
Normal file
|
@ -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
|
1
config/shione/nginx/debian/compat
Normal file
1
config/shione/nginx/debian/compat
Normal file
|
@ -0,0 +1 @@
|
||||||
|
9
|
16
config/shione/nginx/debian/control
Normal file
16
config/shione/nginx/debian/control
Normal file
|
@ -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.
|
8
config/shione/nginx/debian/copyright
Normal file
8
config/shione/nginx/debian/copyright
Normal file
|
@ -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
|
1
config/shione/nginx/debian/nginx-config.hide
Normal file
1
config/shione/nginx/debian/nginx-config.hide
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/etc/nginx/sites-enables/defaut
|
1
config/shione/nginx/debian/nginx-config.install
Normal file
1
config/shione/nginx/debian/nginx-config.install
Normal file
|
@ -0,0 +1 @@
|
||||||
|
files/* /
|
4
config/shione/nginx/debian/rules
Executable file
4
config/shione/nginx/debian/rules
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with config-package
|
1
config/shione/nginx/debian/source/format
Normal file
1
config/shione/nginx/debian/source/format
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3.0 (native)
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
1
config/shione/nginx/files/etc/nginx/sites-enabled/homepage.conf
Symbolic link
1
config/shione/nginx/files/etc/nginx/sites-enabled/homepage.conf
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../sites-available/homepage.conf
|
Loading…
Reference in a new issue