aboutsummaryrefslogtreecommitdiff
path: root/config/nginx-emailproxy.conf
diff options
context:
space:
mode:
Diffstat (limited to 'config/nginx-emailproxy.conf')
-rw-r--r--config/nginx-emailproxy.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/nginx-emailproxy.conf b/config/nginx-emailproxy.conf
new file mode 100644
index 0000000..60ac318
--- /dev/null
+++ b/config/nginx-emailproxy.conf
@@ -0,0 +1,24 @@
+crt@tc-rafisa-eproxy ~/helper-emailproxy (main)> cat /etc/nginx/conf.d/emailproxy-ui.conf
+server {
+ listen 8080;
+ server_name _;
+
+ root /var/www/emailproxy-ui;
+ index index.php;
+
+ access_log /home/crt/helper-emailproxy/logs/nginx/nginx-access.log;
+ error_log /home/crt/helper-emailproxy/logs/nginx/nginx-error.log;
+
+ location / {
+ try_files $uri $uri/ =404;
+ }
+
+ location ~ \.php$ {
+ include snippets/fastcgi-php.conf;
+ fastcgi_pass unix:/run/php/php8.2-fpm.sock; # maybe ajust this if u got older version yk
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+} \ No newline at end of file