Fixes and improvements

This commit is contained in:
2025-04-10 19:10:57 +01:00
parent 9f715ac17a
commit 660fb0c642
5 changed files with 28 additions and 36 deletions
-2
View File
@@ -49,5 +49,3 @@ jobs:
ssh-keyscan -H hazemkrimi.tech >> ~/.ssh/known_hosts
rsync -avz --delete client/build/* deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
rsync -avz --delete server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
# scp -r client/build deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
# scp server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
-1
View File
@@ -1,7 +1,6 @@
export const KEYS_TO_DISABLE = [
'Backspace',
'Shift',
'Alt',
'Control',
'F1',
'F2',
+3 -10
View File
@@ -1,14 +1,8 @@
events {}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 80;
server {
server_name touch-programming.hazemkrimi.tech;
access_log /var/log/nginx/access.log;
root /usr/share/nginx/html;
root /var/www/touch-programming.hazemkrimi.tech/public;
location / {
try_files $uri $uri/ /index.html;
@@ -33,5 +27,4 @@ http {
proxy_cache_bypass $http_upgrade;
proxy_http_version 1.1;
}
}
}
+2 -2
View File
@@ -2,8 +2,8 @@
Description=Touch Programming API Service
[Service]
ExecStart=/usr/local/bin/touch-programming-api
WorkingDirectory=/usr/local/bin
ExecStart=/var/www/touch-programming.hazemkrimi.tech/api/executable
WorkingDirectory=/var/www/touch-programming.hazemkrimi.tech/api
User=hazem
Group=hazem
LimitNOFILE=65536
+3 -1
View File
@@ -26,7 +26,9 @@ func main() {
ech := echo.New()
ech.Use(middleware.CORS())
ech.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowOrigins: []string{"https://touch-programming.hazemkrimi.tech"},
}))
ech.GET("/generate", handlers.Generate)