Spaces:
Sleeping
Sleeping
Commit
·
dfb0dcb
1
Parent(s):
27b1986
Upload 2 files
Browse files- default.txt +118 -0
- htpasswd.txt +1 -0
default.txt
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
##
|
2 |
+
# You should look at the following URL's in order to grasp a solid understanding
|
3 |
+
# of Nginx configuration files in order to fully unleash the power of Nginx.
|
4 |
+
# https://www.nginx.com/resources/wiki/start/
|
5 |
+
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
|
6 |
+
# https://wiki.debian.org/Nginx/DirectoryStructure
|
7 |
+
#
|
8 |
+
# In most cases, administrators will remove this file from sites-enabled/ and
|
9 |
+
# leave it as reference inside of sites-available where it will continue to be
|
10 |
+
# updated by the nginx packaging team.
|
11 |
+
#
|
12 |
+
# This file will automatically load configuration files provided by other
|
13 |
+
# applications, such as Drupal or Wordpress. These applications will be made
|
14 |
+
# available underneath a path with that package name, such as /drupal8.
|
15 |
+
#
|
16 |
+
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
|
17 |
+
##
|
18 |
+
|
19 |
+
# Default server configuration
|
20 |
+
#
|
21 |
+
server {
|
22 |
+
listen 7860 default_server;
|
23 |
+
listen [::]:7860 default_server;
|
24 |
+
|
25 |
+
# SSL configuration
|
26 |
+
#
|
27 |
+
# listen 443 ssl default_server;
|
28 |
+
# listen [::]:443 ssl default_server;
|
29 |
+
#
|
30 |
+
# Note: You should disable gzip for SSL traffic.
|
31 |
+
# See: https://bugs.debian.org/773332
|
32 |
+
#
|
33 |
+
# Read up on ssl_ciphers to ensure a secure configuration.
|
34 |
+
# See: https://bugs.debian.org/765782
|
35 |
+
#
|
36 |
+
# Self signed certs generated by the ssl-cert package
|
37 |
+
# Don't use them in a production server!
|
38 |
+
#
|
39 |
+
# include snippets/snakeoil.conf;
|
40 |
+
|
41 |
+
root /var/www/html;
|
42 |
+
|
43 |
+
# Add index.php to the list if you are using PHP
|
44 |
+
index index.html index.htm index.nginx-debian.html;
|
45 |
+
|
46 |
+
server_name _;
|
47 |
+
|
48 |
+
location / {
|
49 |
+
proxy_set_header Host $host;
|
50 |
+
proxy_set_header X-Real-IP $remote_addr;
|
51 |
+
proxy_pass http://localhost:7870;
|
52 |
+
}
|
53 |
+
|
54 |
+
location /api/ {
|
55 |
+
proxy_set_header Host $host;
|
56 |
+
proxy_set_header X-Real-IP $remote_addr;
|
57 |
+
proxy_pass http://localhost:7880/;
|
58 |
+
|
59 |
+
proxy_http_version 1.1;
|
60 |
+
proxy_set_header Upgrade $http_upgrade;
|
61 |
+
proxy_set_header Connection "upgrade";
|
62 |
+
}
|
63 |
+
|
64 |
+
location /console/ {
|
65 |
+
auth_basic "Console";
|
66 |
+
auth_basic_user_file "/etc/nginx/htpasswd";
|
67 |
+
proxy_set_header X-WEBAUTH-USER $remote_user;
|
68 |
+
proxy_set_header Authorization "";
|
69 |
+
|
70 |
+
proxy_http_version 1.1;
|
71 |
+
proxy_set_header Host $host;
|
72 |
+
proxy_set_header X-Real-IP $remote_addr;
|
73 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
74 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
75 |
+
proxy_set_header Upgrade $http_upgrade;
|
76 |
+
proxy_set_header Connection "upgrade";
|
77 |
+
proxy_pass http://localhost:7681/;
|
78 |
+
}
|
79 |
+
|
80 |
+
|
81 |
+
# pass PHP scripts to FastCGI server
|
82 |
+
#
|
83 |
+
#location ~ \.php$ {
|
84 |
+
# include snippets/fastcgi-php.conf;
|
85 |
+
#
|
86 |
+
# # With php-fpm (or other unix sockets):
|
87 |
+
# fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
88 |
+
# # With php-cgi (or other tcp sockets):
|
89 |
+
# fastcgi_pass 127.0.0.1:9000;
|
90 |
+
#}
|
91 |
+
|
92 |
+
# deny access to .htaccess files, if Apache's document root
|
93 |
+
# concurs with nginx's one
|
94 |
+
#
|
95 |
+
#location ~ /\.ht {
|
96 |
+
# deny all;
|
97 |
+
#}
|
98 |
+
}
|
99 |
+
|
100 |
+
|
101 |
+
# Virtual Host configuration for example.com
|
102 |
+
#
|
103 |
+
# You can move that to a different file under sites-available/ and symlink that
|
104 |
+
# to sites-enabled/ to enable it.
|
105 |
+
#
|
106 |
+
#server {
|
107 |
+
# listen 80;
|
108 |
+
# listen [::]:80;
|
109 |
+
#
|
110 |
+
# server_name example.com;
|
111 |
+
#
|
112 |
+
# root /var/www/example.com;
|
113 |
+
# index index.html;
|
114 |
+
#
|
115 |
+
# location / {
|
116 |
+
# try_files $uri $uri/ =404;
|
117 |
+
# }
|
118 |
+
#}
|
htpasswd.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
# Will be generated
|